Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Help with quitting stay-open app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with quitting stay-open app



"Emmett Gray" wrote:

> There's some behavior I don't understand. I have the following script:

[clipped]

> to confirmDropped(newItems)
> activate
> try
> display dialog "Process the dropped item(s)?"
> --do something if OK
> on error number -128 (* user cancelled *)
> quit
> end try
> end confirmDropped

I have had some conditions where I had to explicitly create an 'on quit'
handler and therefore include a 'continue quit' statement like so:

on quit
  -- any statements you'd like, including bailing on the quit
  -- ...
  continue quit
end quit

You can read more about 'on quit' in the ASLG, at section:

'Handlers' >
   Script Applications >
       Handlers for Stay-Open Script Applications >
           'on quit'

or direct frame link: [no spaces in url]

<http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScript
LangGuide/AppleScript.e8.html>
--
Gary

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Help with quitting stay-open app (From: Emmett Gray <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.