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.

Media files in FM Database

Featured Replies

Forgive me for this very elementary question... Am not sure if filemaker is different from other databases in the context of this question.

Whats the advantage of saving media files like swf, mov, jpg, pdf files in container fields? In other words, Whats the disadvantage of storing only the relative filepath in filemaker ( the actual files are saved in a folder separately ). Would filemaker allow an applescript to check if all links to such a saved file are valid every time I open a database?

Also, Is it possible to script filemaker open a media file (Let say a pdf file) with adobe acrobat than the system default "Preview" ? Is it done using Applescript or using some other technique?

Edited by Guest

Whats the advantage of saving media files like swf, mov, jpg, pdf files in container fields? In other words, Whats the disadvantage of storing only the relative filepath in filemaker

That they opens in the correct application if they're referenced, but as you point out is there a problem if they go amiss, say a firewire drive isn't turned on or such!

Is it possible to script filemaker open a media file (Let say a pdf file) with adobe acrobat than the system default "Preview" ? Is it done using Applescript or using some other technique?

Yes it is, since the free version of Acrobat Reader isn't AS scriptable could it be done this way - please note that your version might be another than mine, so you need to change the calculated applescript accordingly!

Export Field Contents [ Untitled::aContainer ] 

Perform AppleScript [ Calculated AppleScript: Let(tt=GetAsText ( Untitled::aContainer ) ; 

"set theApplication to the path to application "Adobe Reader 7.0.5"¶ 

set aVar to path to desktop as text¶ 

set aVar to aVar & "" & tt & ""¶ 

set theFile to aVar as alias¶ 

tell application "Finder"¶ 

open theFile using theApplication¶ 

end tell¶ 

delay 2¶ 

set p to posix path of aVar¶ 

set p to "rm " & p¶ 

do shell script p" 

  ) ] 

...the last 3 lines gets rid of the temporary stored file on the desktop, without filling the waste basket.

--sd

ShowEmbedded.zip

  • Author

Thanks for the great info

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.