macaroni Posted March 12, 2003 Posted March 12, 2003 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.
Chuck Posted March 12, 2003 Posted March 12, 2003 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
macaroni Posted March 12, 2003 Author Posted March 12, 2003 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.
Chuck Posted March 13, 2003 Posted March 13, 2003 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
Recommended Posts
This topic is 8272 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 accountSign in
Already have an account? Sign in here.
Sign In Now