• 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: Can't quit from Dock or cmd-Q
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't quit from Dock or cmd-Q


  • Subject: Re: Can't quit from Dock or cmd-Q
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 24 Oct 2002 21:26:40 -0700

On 10/24/02 4:50 PM, "has" <email@hidden> wrote:

> 'Quit' is polite and civilised: it doesn't interrupt other operations that
> are currently underway. Instead, it waits till those operations have
> finished before shutting down the whole process. If your valuable database
> application is performing some sensitive data processing operation, you
> don't want it to drop everything it's doing and crash to a chaotic halt.
> You want it to finish that work first, and only _then_ shut down in an
> organised fashion.

But all that can be taken care of in a 'quit' handler. In fact the quit
handler does intercept the termination signal from Dock (with an "o" -
thanks Shane;-)), and allows me to do all the cleaning up necessary. but
then it just continues on, as you say. My clunky workaround, which you will
hate but i am grateful for, was to set a global variable in the quit
handler, let the current loop iteration finish (what choice is there?) and
then save the database and error number -128 at the top of the next loop
iteration if the global variable has been reset. Works pretty well - just a
few seconds delay and no mess.

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Can't quit from Dock or cmd-Q (From: has <email@hidden>)

  • Prev by Date: Re: Can't quit from Dock or cmd-Q
  • Next by Date: Re: Scripting in Excel -> search different words in column and color them
  • Previous by thread: Re: Can't quit from Dock or cmd-Q
  • Next by thread: Re: Can't quit from Dock or cmd-Q
  • Index(es):
    • Date
    • Thread