我已经到了这里:
tell application "System Events"
tell process "System Preferences"
tell window "Flash Player"
click radio button "Advanced" of tab group 1
tell scroll area "Advanced"
click button "Check Now" of window 2
end tell
end tell
end tell
end tell
但我无法点击“立即检查”按钮获取AppleScript。
我想我需要添加另一个tell application "System Events"
来点击高级选项卡的第二个区域,但到目前为止我只是得到错误
答案 0 :(得分:0)
这对我很有效:
tell application "System Events"
tell process "System Preferences"
tell window "Flash Player"
tell tab group 1
click radio button "Advanced"
tell scroll area 1
click button "Check Now"
end tell
end tell
end tell
end tell
end tell
在这种情况下,工具Accessibility Inspector非常有用。