Re: Script to find user interface elements
Re: Script to find user interface elements
- Subject: Re: Script to find user interface elements
- From: Kim Hunter <email@hidden>
- Date: Thu, 26 May 2005 00:28:29 +1000
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