Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Newbies

I understand this is an old thread, however I am having an issue with this and I am using BE_ExecuteSystemCommand.

 

I am working on using the baseelements plugin to convert a file. 
I have the BE_ExportFieldContents working properly, but I am not having much luck with converting the file using ffmpeg. 
I have 
BE_ExecuteSystemCommand ("ffmpeg -i \"/Library/FileMaker Server/Data/Documents/IMG_4039.MOV\" -acodec copy \"/Library/FileMaker Server/Data/Documents/robert.m4v\""; 15000) 
Which doesnt seem to work. 
I have used terminal to get it working successfully with 
ffmpeg -i "/Library/FileMaker Server/Data/Documents/IMG_4039.MOV" -acodec copy "/Library/FileMaker Server/Data/Documents/robert.m4v" 
I have also tried 
BE_ExecuteSystemCommand ("/bin/bash -c ffmpeg -i \"/Library/FileMaker Server/Data/Documents/IMG_4039.MOV\" -acodec copy \"/Library/FileMaker Server/Data/Documents/robert.m4v\""; 15000)

I have used the BE_ExecureSystemCommand successfully by calling 
BE_ExecuteSystemCommand ("osascript -e 'tell app \"Finder\" to display dialog \"Hello World\"'"; 60000) 
adding /bin/bash -c before the above code does not seem to work. 
I am on a mac running filemaker pro advanced using filemaker server.

Also can I call the BE_ExportFieldContents using perform script on server. I couldnt seem to get it working, but the script schedule worked, as well as a local script not performed on the server.

Thank you for any help.

Edited by rramsdale

Old Thread I'm splitting this off into a new thread in Scripts, because the old thread was not a post as a Base Element question, it was only suggestion in a Reply. Hopefully having Base Element in the title will attract more attention.

Sounds like you're converting a video file, which might take some time.

The Base Elements documentation says:

Quote

A result of 12000 is a plugin error : Timeout exceeded.

Try checking for the error with BE_GetLastError. The error numbers are NOT FileMaker error codes.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.