Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
User interface 系统首选项中Flash Player更新的Applescript检查_User Interface_Applescript - Fatal编程技术网

User interface 系统首选项中Flash Player更新的Applescript检查

User interface 系统首选项中Flash Player更新的Applescript检查,user-interface,applescript,User Interface,Applescript,我已经到了这里: 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 No

我已经到了这里:

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"
    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
在这种情况下,该工具非常有用