• 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
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


  • 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

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

  • Prev by Date: Re: Folder actions steal UI foces
  • Next by Date: Re: Applescript an Automator action?
  • Previous by thread: Help with quitting stay-open app
  • Next by thread: Help with quitting stay-open app
  • Index(es):
    • Date
    • Thread