In Applescript, I can click a checkbox in my application like so:

tell application "System Events"
        tell process "MyApp"
                tell window "MyWindow"
                        click checkbox 4
                end
        end
end


The button identified by "checkbox 4" has no visible title (just the icon), but 
I did set a title so the button technically has one, but it isn't usable by 
Applescript. I thought this might mean I'd have to do 

[button accessibilitySetValue:@"My Title" 
forAttribute:NSAccessibilityTitleAttribute];

But that resulted in:
"AXTitle" attribute unsupported by: <NSButton: 0x224d1e0>


It seems that NSButton/NSControl doesn't have the ability to use a custom 
AXTitle and also doesn't export the non-visible title.


Any thoughts on what I should do to be able to name the button for 
accessibility?



--
Seth Willits





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to