• 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: Quit Handler... What Am I Missing Here?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quit Handler... What Am I Missing Here?


  • Subject: Re: Quit Handler... What Am I Missing Here?
  • From: Stan Cleveland <email@hidden>
  • Date: Thu, 12 May 2011 11:38:24 -0700

On May 12, 2011, at 5:06 AM, S. J. Cunningham wrote:

> I have a script... <snip> ...I assumed that if I selected "Quit" from the running script's application menu, it would execute the quit handler and, well, quit.  It doesn't.  The only way I can quit the application is to Force Quit it and that leaves files open that the quit handler was supposed to clean up.  This seems like a bug to me.

Hi S.J.,

What works in practice may be very different from what one might expect. I've written and maintain several stay-open script applications that have been running 24/7 for several years (with peroidic system restarts, of course).

To stop one, I bring it frontmost and type command-period two or three times, which may quit the script outright. If not, the command-period has at least halted execution, so a command-q (or Quit menu command) will finish the job of quitting the app.

HTH,
Stan C.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Quit Handler... What Am I Missing Here? (From: Nigel Garvey <email@hidden>)
 >Re: Quit Handler... What Am I Missing Here? (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: Help needed with Finder copy/duplicate with Apple script !!
  • Next by Date: Re: What is the System language
  • Previous by thread: Re: Quit Handler... What Am I Missing Here?
  • Next by thread: Re: AppleScript-Users Digest, Vol 8, Issue 198
  • Index(es):
    • Date
    • Thread