编写“系统首选项”脚本”语言与文本”
我需要使用 applescript 更改系统首选项|语言和列表框“区域”文本部分。我无法访问此列表框 - 请参阅下面的代码。
tell application "System Preferences"
activate
get the name of every pane of application "System Preferences"
set the current pane to pane id "com.apple.Localization"
get the name of every anchor of pane id "com.apple.Localization"
reveal anchor "Formats" of pane id "com.apple.Localization"
end tell
I need to change, using applescript, the listbox "region", in the system preferences|language & text section. I can't access this listbox - see code below.
tell application "System Preferences"
activate
get the name of every pane of application "System Preferences"
set the current pane to pane id "com.apple.Localization"
get the name of every anchor of pane id "com.apple.Localization"
reveal anchor "Formats" of pane id "com.apple.Localization"
end tell
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GUI 脚本始终是一个挑战,并且并不总是可靠,但是您可以使用
GUI scripting is always a challenge iand isn't always reliable but here you go