如何在Applescript中访问元素的容器?

时间:2012-10-24 02:31:29

标签: applescript

我想做以下事情:

container of (1st static text of rows of tables of ¬
  scroll areas of (1st window whose title contains ¬
  "motorola") whose value contains "16225")
--> row N of table N of scroll area N of …

思想?

1 个答案:

答案 0 :(得分:0)

使用value of attribute "AXParent"attributes of显示了UI元素的其他属性。

tell application "System Events" to tell process "Finder"
    value of attribute "AXParent" of some UI element of window 1
end