How do I simply quit execution?
How do I simply quit execution?
- Subject: How do I simply quit execution?
- From: Matthew Broms <email@hidden>
- Date: Fri, 18 May 2001 12:42:24 -0400
This seems like such an easy problem, but for some reason I cannot figure
out how to quit my script. If I'm nested down several handlers and an error
gets thrown or the user clicks on a "Cancel" dialog, I just want the script
to stop completely, as if it finished. How can I just abort the whole
execution?
I've tried quit (tell process "myScript" to quit), exit, cancel, return,
abort, kill, die verman! - nothing works. The best I can do is an exit
repeat (if I'm in a loop) which just puts me back up a handler. I don't
want to do this all the way up, but if I don't, an error gets thrown because
the data that handler was trying to supply didn't supply it. So the user is
presented a cryptic error dialog box.
Thanks,
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~