• 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
Setting the focused UI element from AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting the focused UI element from AppleScript?


  • Subject: Setting the focused UI element from AppleScript?
  • From: "Timothy J. Wood" <email@hidden>
  • Date: Fri, 27 Oct 2006 15:46:30 -0700


I'm working on some AppleScript-driven automated tests and it would be very useful to use GUI scripting to change focus in the application (followed shortly by keyboard events to simulate user events). I don't see a way to set the focused element, though.


The 'focused' property on UI element is specified r/w, but setting it is generating a scripting error for me. Is this supposed to work? Is there a different way, or should I hack something in myself (along with a Radar? :)

  Thanks!

-tim


_______________________________________________ Do not post admin requests to the list. They will be ignored. Accessibility-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Setting the focused UI element from AppleScript?
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: How to notify that most of the accessibility tree has changed
  • Next by Date: Re: Setting the focused UI element from AppleScript?
  • Previous by thread: How to notify that most of the accessibility tree has changed
  • Next by thread: Re: Setting the focused UI element from AppleScript?
  • Index(es):
    • Date
    • Thread