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.

How to get FM to return a value to an Applescript

Featured Replies

I have an Applescript that runs a FM script via the 'do script' AppleScript command. What I want is for the FM script that runs to do some work and then return a text value back to the AppleScript. The last step of the FM script is 'Exit Script' with a text 'result' value set.

The problem is that the 'do script' AppleScript step is not returning the FM Script's 'result' value -- presumably because the return value is only getting passed to a calling FM script, not an AppleScript.

I'm wondering if there is some other way to do this. Obviously I could have the Applescript proceed on, wait awhile, and then check either a FM global var or the clipboard for a return value. But both of those options are problematic. I am hoping to get a direct return value from FM.

Here is my applescript code:

tell application "FileMaker Pro Advanced"

tell document 1

set myvalue to do script "myFMScript"

end tell

end tell

Whenever this is run, I get an error stating that 'do script' does not return a value.

Thanks. John

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.