【发布时间】:2021-05-28 02:23:15
【问题描述】:
我正在尝试编写一个 applescript 来更改系统偏好设置中的热点设置。
这是我到目前为止所得到的。
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.desktopscreeneffect"
end tell
tell application "System Events"
tell process "System Preferences"
click button "Hot Corners..."
end tell
end tell
但我收到此错误:error "System Events got an error: Can’t get button \"Hot Corners...\" of process \"System Preferences\"." number -1728 from button "Hot Corners..." of process "System Preferences"。我会很感激有人解释这里出了什么问题,还有没有办法获取窗格的属性(例如可用按钮)?
【问题讨论】:
标签: applescript system-preferences