Jump to content
Sign in to follow this  
manitobaangler

Force Exit Script

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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