Minor Scriptability Quesiton
Minor Scriptability Quesiton
- Subject: Minor Scriptability Quesiton
- From: Seth Willits <email@hidden>
- Date: Tue, 14 May 2013 16:55:37 -0700
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 (email@hidden)
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:
This email sent to email@hidden