Re: on quit handler
Re: on quit handler
- Subject: Re: on quit handler
- From: louie <email@hidden>
- Date: Sun, 10 Apr 2011 10:38:17 -0700
Hi Axel,
What I have is a VOIP application that I start from a script. What I want is when I press command q while in the VOIP application I want to check to see if a recording application is running and terminate it.
Thanks for any help
>
On Apr 9, 2011, at 11:50 PM, Axel Luttgens wrote:
> 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
louie
email@hidden
_______________________________________________
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