Re: how can I provide stable names for UI elements in a Cocoa application?
Re: how can I provide stable names for UI elements in a Cocoa application?
- Subject: Re: how can I provide stable names for UI elements in a Cocoa application?
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 17 Aug 2005 12:55:43 -0400
on 2005-08-17 12:38 PM, Mike Morton at email@hidden wrote:
> How can a Cocoa app provide names for AppleScript scripts to use, but keep
> those names stable? I¹m willing to do a moderate amount of Cocoa work to
> implement this
You may not have to do it in Cocoa. Try setting the new "AXDescription"
accessibility attribute in IB's Accessibility pane for all your UI elements.
Then see if you can script them using statements like this:
set name of button whose description is "my English name" to "meines Namen
auf Deutsch" (proving that I've forgotten my high school German long ago).
--
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.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden