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

Hello. Sorry – crap at scripting. I have an FMP container field pointing to an mp4 file – well, a stack of them. I have a field that contains the path to each file. I have a button to open the file in its native app quite successfully. I would like a script that instead of opening the file simply reveals it in the finder. I've run the gamut of bad (AppleScript) syntax through damaged libraries and I'm sweating. Any help appreciated. Thanks a lot!

Typical path:

m3 ssd:Users:xxxxxxxx:Movies:music vids:Wild Thing.mp4

Assuming the path field holds a valid macOS path to the file, try either one of these:

• Calculated AppleScript:

"tell application \"Finder\"¶
activate¶
reveal file \"" & YourTable::Pathfield & "\"¶
end tell"

• Native AppleScript:

set myFile to cell "Pathfield" of current record
tell application "Finder"
activate
reveal file myFile 
end tell 

I believe this variant requires enabling the fmextscriptaccess extended privilege.

 

  • Author
  • Newbies

Oh. That's marvellous – thanks so much!! I was inches from it but missing those quotes/slash bits in the calc version.

Will be playing tonight. Really appreciate it – thanks a lot!

/j

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.