• 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
Activate a script when an application changes focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Activate a script when an application changes focus


  • Subject: Activate a script when an application changes focus
  • From: Bart Bunting <email@hidden>
  • Date: Tue, 12 Apr 2011 14:47:15 +1000

Hi Everyone,

I'll start by saying that I am very new to Applescript and really only
understand the basics at the moment.

I am blind and use voiceover to read the screen.  However I have two
applications, vmware and emacs where having voiceover on gets in the
way.  Each time i switch to either app I turn voiceover off using
command f5.

I was hoping that there was a way to run an applescript each time an
application gains or loses focus.

What I want to have happen is:

Application gets focus.
- Check if it is either emacs or vmware.  If so turn off voiceover.
- If it is not then make sure voiceover is turned on.

Can anyone give me some pointers how to achieve this?

>From my reading I have the vague understanding that I can use the
accessibility API to get system events and trigger applescripts.  I for
the life of me can't figure out how this is meant to work though.

Any pointers would be greatly appreciated.

Kind regards


Bart


 _______________________________________________
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: Activate a script when an application changes focus
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: Empty Record
  • Next by Date: Re: Empty Record
  • Previous by thread: Re: Empty Record
  • Next by thread: Re: Activate a script when an application changes focus
  • Index(es):
    • Date
    • Thread