Re: on quit handler
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