0
我想用苹果脚本在系统偏好设置中打开2个代理(我必须用它来访问这个站点),但是我无法获得脚本来点击复选框。代码如下:“路径”到applescript上的代理框?
tell application "System Preferences" to set current pane to pane "com.apple.preference.network"
tell application "System Events" to tell process "System Preferences" to tell window "Network"
click button "Advanced…"
delay 2
tell TabGroup of sheet 1
tell radio button "proxies"
click
end tell
end tell
end tell
我想要的代码,点击HTTP和HTTPS代理盒这是在代理选项卡这是先进滑下标签的一部分,但我不知道什么是“道”是。有人能帮助我吗?感谢;)
非常感谢!顺便说一下,你是如何获得路径的? – alexforC
我使用了UI浏览器。 – adayzdone
谢谢,但我仍然有一个问题.....当我更改“SOCKS代理”到“Web代理(HTTP)”并运行它,整个计算机冻结。你能否告诉我为什么和替代? – alexforC