Re: Help with quitting stay-open app
Re: Help with quitting stay-open app
- Subject: Re: Help with quitting stay-open app
- From: "Gary (Lists)" <email@hidden>
- Date: Tue, 24 May 2005 10:15:12 -0400
"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