manitobaangler Posted May 25, 2001 Posted May 25, 2001 Bob, Help! Maybe it's because it's a Friday afternoon and the sun is shining outside I can't get this or maybe the fact that AppleScript isn't my thing but . . . I have a number of error checking actions occuring within a try. On an error I have a simple dialog appear. If an error occurs, I'd like to simply quite the whole applescript and let the user do what they must to fix the problem. What syntax must I use? The current problem is the applescript continues and a subsequent error message may appear thus confusing the user as to what the actual problem is. Thanks in advance even if you have to tell me slap myself upside the head. Here's a section of the applescript in question. tell application "FileMaker Pro 5.0" if theadprogram is "Multi-Ad" then tell application "Multi-Ad Creator
BobWeaver Posted May 26, 2001 Posted May 26, 2001 If your script is set up as an application you should be able to use this syntax: quit application "ScriptName" If the script is within a Filemaker script, then the easiest thing that comes to mind is to do this: code: set ErrorCondition to false tell application "FileMaker Pro 5.0" if theadprogram is "Multi-Ad" then tell application "Multi-Ad Creator
manitobaangler Posted May 31, 2001 Author Posted May 31, 2001 Thanks, the ErrorCondition worked great.
Recommended Posts
This topic is 8575 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