Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7930 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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

Posted

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.

Posted

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

This topic is 7930 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.