• 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: Script to find user interface elements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to find user interface elements


  • Subject: Re: Script to find user interface elements
  • From: Bill Cheeseman <email@hidden>
  • Date: Wed, 25 May 2005 06:17:55 -0400

on 2005-05-25 1:24 AM, Kim Hunter at email@hidden wrote:

> I know the elements are nestled but is it posible to find out what the next
> level of elements are with a script.

GUI Scripting was enhanced in Tiger to return arrays of UI elements from
appropriate attributes. In Tiger, you can do this sort of thing:

tell application "System Events"
    tell process "Finder"
        get value of attribute "AXChildren" of UI element 1
    end tell
end tell

or this (which will take several seconds to run):

tell application "System Events"
    tell process "Finder"
        get entire contents of menu bar 1
    end tell
end tell

PreFab UI Browser, mentioned in other posts, is here:
<http://www.prefab.com/uibrowser/>.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Script to find user interface elements
      • From: Kim Hunter <email@hidden>
References: 
 >Script to find user interface elements (From: Kim Hunter <email@hidden>)

  • Prev by Date: Re: Script to find user interface elements
  • Next by Date: Re: Applescript-users Digest, Vol 2, Issue 304
  • Previous by thread: Re: Script to find user interface elements
  • Next by thread: Re: Script to find user interface elements
  • Index(es):
    • Date
    • Thread