Q: UI Scripting - Attribute Value
Is it possible to get an attribute value when UI scripting?
Using the Accessibility Inspector I can see an attribute accessibilityVisibleRows in an AXOutline element, but I don't know how to get hold of it.
MacBook Pro, OS X El Capitan (10.11.5), 16GB RAM
Posted on Jul 6, 2016 11:59 AM
Unfortunately, I have no multi-output device I could connect to my MacBook Pro. However, in case it might help, here's how the state of a disclosure triangle can be checked in Mail:
tell application "Mail" to activate
tell application "System Events"
tell process "Mail"
value of UI element 3 of UI element "Inbox" of row 2 of outline 1 of scroll area 1 of splitter group 1 of window "Inbox (52 messages)" --> 0 or 1
end tell
end tell
Edit — UI element 1 of UI element "Inbox" is the static text, UI element 2 of UI element "Inbox" is an image.
Posted on Jul 7, 2016 9:02 AM