With @markhunte's hint, I worked out how to reach the text of a row in the outline, using UI Elements
and get properties
. It turns out the AXRow > AXCell > AXStaticText
hierarchy displayed by the Accessibility Inspector was misleading.
The text of each is access through name of first UI Element of row (of outline...)
.
Here's the working code that does what I intended to achieve:
tell application "System Events"
tell process "MyApp"
repeat with aRow in row of outline 1 of scroll area 1 of splitter group 1 of window 1
if name of first UI element of aRow starts with "Schedule" then select aRow
end repeat
end tel
end tell