テキストに基づいて、AppleScript を使用してアウトラインの特定の行を選択しようとしています。
これが私が考えていることです(しかしうまくいきません):
repeat with aRow in rows of outline 1 of scroll area 1 of splitter group 1 of window 1
set t to text of cell of aRow
if t starts with "some text" then select aRow
end repeat
問題は、text of cell of aRow
私が思うように解決しないことです。Accessibility Inspector を使用して、オブジェクトの階層を確認しました。行で「UI Elements」を使用して、アクセス可能な要素を確認しようとしましたが、有用なものは何も返されません。だから私は考えていません!私は何が欠けていますか?