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.

Check status of the run of AppleScript.

Featured Replies

I defined a button that is attached to a script and in the the script is a "Perform AppleScript".

I wanted to know how how to check the status of an the AppleScript after it has finished running.

Is there a way to check the status i.e. (Status(CurrentAppleScript)) or something.

Thanks.

What exactly do you want to check? If it's the final result of the script, add a line to the end of the AppleScript that sets the result to a global field in FileMaker.

set cell "gASResult" of current record to result

You can then use the contents of gASResult to decide what to do next.

Chuck

  • Author

Well the AppleScript returns "true" if successful and "false" if it fails. The AppleScript is a function that attempts to download a specific file. If the file is downloaded successfully, I want to do a series of steps and a different series of steps if the AppleScript didn't work successfully.

So I need to check the return value of the AppleScript that ran.

Thanks.

Create a field called gASResult in the FileMaker file. Make it a global number field. Add the following lines of code to the end of your AppleScript.

if result is true

  • Author

Thanks so much.

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.