• 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: on quit handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: on quit handler


  • Subject: Re: on quit handler
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 10 Apr 2011 08:50:17 +0200

Le 9 avr. 2011 à 23:53, louie a écrit :

> Hi all,
> I have a on quit handler. How do I make the handler run only one time.
> Thank you.

Hello Louie,

Could you explain a bit more?

Either you invoke the "on quit" handler from within your code, and the answer is easy: don't call it more than once. ;-)

Or you are considering the case of your script saved as an application, and its "on quit" handler may be invoked because the application leaves, or because it receives a quit event from somewhere else (the File/Quit menu item, the user's session being closed, a "tell application myapp to quit" statement run in another script...); the answer then depends very much of what you are considering, of what you want to do.

Axel

 _______________________________________________
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

  • Follow-Ups:
    • Re: on quit handler
      • From: louie <email@hidden>
References: 
 >on quit handler (From: louie <email@hidden>)

  • Prev by Date: Re: stay running
  • Next by Date: Re: stay running
  • Previous by thread: on quit handler
  • Next by thread: Re: on quit handler
  • Index(es):
    • Date
    • Thread