Jump to content
Server Maintenance This Week. ×

Force Exit Script


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

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

Link to comment
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
Link to comment
Share on other sites

This topic is 8366 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.