Accessibility / System Events changes in Tiger
Accessibility / System Events changes in Tiger
- Subject: Accessibility / System Events changes in Tiger
- From: "Scott Babcock" <email@hidden>
- Date: Mon, 8 Aug 2005 20:34:24 -0700
- Thread-topic: Accessibility / System Events changes in Tiger
I do a lot of UI scripting through System Events, and the introduction
of Tiger has thrown a few wrinkles into the challenge of writing
OS-agnostic code. Here are the ones I've tripped over so far...
* The values for the AXMenuItemMarkChar attribute of menu items have
been changed. For example, a checked menu item used to have an
AXMenuItemMarkChar value of <<data utxt0012>>, but on Tiger it's <<data
utxt2713>>. I can't see any benefit to this change, especially given
that the old values match the ones that have been returned by the
Toolbox since the dawn of Macintosh. Also, the "unmarked" value is still
<<data utxt0000>>, which can't be matched as Unicode text (a
control-code challenged data type).
* Many elements that used to have AXFocused attributes no longer have
this attribute. For example, the static text elements in outline lists
used to have AXFocused attributes which indicated which item(s) in the
list was/were selected. (Granted, this was silly behavior since
"focused" isn't the same as "selected".) Now you have to look at the
AXSelected attribute of the row that contains the static text element to
determine whether it's selected.
* The element class of items in the Standard Open dialog (in Browser
view) changed from text field to static text. This was a bug, but fixing
it means that I need version-specific code to handle whichever OS I'm
running on.
There are undoubtedly other tweaks to accessibility and System Events.
I'll trip on those, too. On the plus side, they fixed that bug that
prevented scripters from getting a reference to the parent of a UI
element, as well as a few other annoyances.
Has anyone noticed other changes in System Events since switching to
Tiger?
_______________________________________________
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