Re: Script to find user interface elements
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