如何使用ApleScript选中Adobe安装程序的复选框



正在尝试安装Adobe Flash Player,我想选中"复选框",并且需要单击"安装"按钮,Whem正在尝试通过window thine throun uielemementInstpector获取整个内容,无法获取复选框的内容和安装按钮。

我只是尝试使用以下脚本来单击复选框,但没有成功,错误说无法获得复选框。

tell application "System Events"
    tell process "Adobe Flash Player Install Manager"
        set frontmost to true
        click the checkbox "I have read and agree to the terms of the Flash Player License Agreement" of window "Adobe Flash Player 11.5 Installer."
    end tell
end tell

请检查以下链接以查看Adobe Flash Player安装程序的图像。

https://docs.google.com/document/d/1yzybtrvi94qxjlealcbudobpxitgpei2la3d1ieo8gw/

下载此S/W:

http://pfiddlesoft.com/uibrowser/downloads/uibrowser222.dmg

安装它。

您可以简单地使用此工具读取复选框的名称和所有复选框。

for ex:如果您附加了带有窗口和复选框的应用程序,则可以通过以下脚本检查该复选框:

tell aplication "system events"
   click checkbox 1 of window 1
end tell

只记得将窗口放在其他窗口中的前面。

您可以通过单击UI浏览器应用中存在的目标弹出按钮来附加过程。

然后单击"开关到屏幕读取器"选项。

现在,您可以看到按钮,控件,Checkbo

的名称

最新更新