• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do I simply quit execution?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  • Prev by Date: Apple Events vs. AppleScript
  • Next by Date: multiple internal ports
  • Previous by thread: Re: Apple Events vs. AppleScript
  • Next by thread: Re: How do I simply quit execution?
  • Index(es):
    • Date
    • Thread