我尝试制作 Applescript 以启用系统偏好设置中“网络”设置的“高级..”菜单中的“Web 代理”和“安全 Web 代理”选项。
到目前为止,这是我的applescript..
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.network"
end tell
tell application "System Events"
tell application process "System Preferences"
tell window "Network"
click button "Advanced…"
tell tab group 1 of sheet 1
click radio button "Proxies"
tell group 1
//what to do here to change Web Proxy and Secure Web Proxy Checkboxes?
end tell
end tell
end tell
end tell
end tell
我无法更改“Web Proxy”和“Secure Web Proxy”设置的值,因为它们没有 Accessibility Inspector 显示的标题。
有没有其他方法可以使用类似于我上面尝试过的 Applescript 启用/禁用复选框?