• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Minor Scriptability Quesiton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Minor Scriptability Quesiton
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Displaying "Trebuchet MS" font
  • Next by Date: Re: Minor Scriptability Quesiton
  • Previous by thread: Re: Sandboxed app & record-level indexing of Core Data in Spotlight (not working)
  • Next by thread: Re: Minor Scriptability Quesiton
  • Index(es):
    • Date
    • Thread