Re: on quit handler
Re: on quit handler
- Subject: Re: on quit handler
- From: Christopher Stone <email@hidden>
- Date: Sun, 10 Apr 2011 23:58:34 -0500
On Apr 10, 2011, at 12:38, louie wrote: 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. ______________________________________________________________________
Hey Louie,
You cannot do this with Applescript; an 'On Quit' handler does something when the Applescript quits. The only way to discretely do what you want is with an automation utility like Keyboard Maestro, QuicKeys, or iKey.
OR
"UI Actions is a scriptable faceless background application, enabling you to use AppleScript commands to attach and detach UI Action scripts, to export and import sets of UI actions, to enable and disable them, and to get a reference to the affected UI element for use in your UI Action scripts."
You have to be able to either intercept the Command-Q event or attach to the 'Quit' menu item in the application in question.
-- Best Regards, Chris |
_______________________________________________
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