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.

use the value from a field in a scriptstep

Featured Replies

Am trying to use the filepath of a file stored in a field (Not the POSIX Path) to open the file using applescript.

I have the following script steps

Set Variable [$FilePath; Value: DocumentLibrary::File Path]

How can I use this variable $FilePath in a "Perform Applescript" Script step?

You just need to massage the path into an applescript and use the variable's value as text for the calculated script, not the dafault option, but the one above!

Substitute( and Replace( comes in pretty handy here!

--sd

  • Author

Thanks.


"tell app "Finder" to open ("" & $FilePath &"") as alias"

  • Author

If the code were

tell app "Finder"

open $filepath

end tell

How should I have "Stringified" the above script.

In otherwords how do I add the return keys at the end of each line. Use the inverted P character?

Just use the carriage return symbol, ¶ (Option-7 on Mac), just like any other FileMaker calculation.

"tell app "Finder"¶open ("" & $FilePath &"") as alias¶end tell"

Edited by Guest

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.