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.

Passing value from AppleScript to FileMaker

Featured Replies

Hey Folks,

I know this is do-able, but I haven't been able to find an example of how to do it. I'm trying to call an applescript from filemaker, then have that script return a value back to filemaker. Could someone post an example of setting a field (global or otherwise) in a particular filemaker file from an AppleScript?

Thanks much,

Jeff


--Your applescript code here

--Assume the result is in variable MyAppleScriptVariable

Tell document "MyDbase.fp5" of application "FileMaker Pro"

    Set cell "SomeGlobalField" of current record to MyAppleScriptVariable

End Tell

  • 1 year later...
  • Newbies

Assuming that a FileMaker script invoked your sample Applescript, should the *same* FileMaker script then be able to continue from that point and *use* the value set in "SomeGlobalField"?

I am trying something similar but seem to be in a race condition in which the called Applescript stalls and cannot set the field until the invoking FileMaker script terminates, which means that the FileMaker script cannot see the returned data. This in spite of telling the FileMaker script to wait for the Applescript to finish.

Maybe I am doing something different from what you intend. I am telling an Applescript application to run, and all of the work is done in the run handler. Is there a better way?

I'm learning Applescript and FileMaker at the same time. Many hours of fun!

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.