【发布时间】:2016-09-05 19:44:30
【问题描述】:
所以我想使用applescript单击系统偏好设置中“允许所有用户访问”的复选标记,然后共享然后远程登录。如本截图所示:
What it should look like if it works
无论如何,我已经非常接近能够点击它但我还没有成功这里是我到目前为止的脚本:
tell application "System Preferences"
set current pane to pane "com.apple.preferences.sharing"
end tell
tell application "System Events"
tell process "System Preferences"
tell checkbox 2 of row 4 of table 1 of scroll area 1 of group 1 of window "Sharing" to if value is 0 then click
end tell
end tell
我只是无法点击正确的复选框,如果你们能帮助我,那就太棒了。谢谢!
(已解决)
【问题讨论】:
标签: applescript