• 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: 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

With Bill Cheeseman's 'UI Actions' utility:

"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

References: 
 >on quit handler (From: louie <email@hidden>)
 >Re: on quit handler (From: Axel Luttgens <email@hidden>)
 >Re: on quit handler (From: louie <email@hidden>)

  • Prev by Date: Image Events needs a GUI
  • Next by Date: Re: on quit handler
  • Previous by thread: Re: on quit handler
  • Next by thread: Re: on quit handler
  • Index(es):
    • Date
    • Thread