Re: Script to find user interface elements
Re: Script to find user interface elements
- Subject: Re: Script to find user interface elements
- From: Bastiaan Boertien <email@hidden>
- Date: Wed, 25 May 2005 16:48:29 +0200
Hi,
If you want to do this with applescript then you should do something like this in panther
tell application "System Events"
tell process "finder"
get every UI element of menu bar 1
end tell
end tell
greetinsg bastiaan
Op 25-mei-05 om 16:28 heeft Kim Hunter het volgende geschreven:
I'm not on tiger yet
Have they ironed out most of the bugs yet.
On 25/5/05 8:17 PM, "Bill Cheeseman" <email@hidden> wrote:
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:
com.au
This email sent to email@hidden
_______________________________________________
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
_______________________________________________
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