我想通过AppleScript访问我自己的pref窗格中的某个tabView项目,如下所示:
tell application "System Preferences"
reveal anchor "Firewall" of pane id "com.apple.preference.security"
end tell
有没有办法在Interface Builder(或代码)中设置锚点名称,我可以通过AppleScript访问我自己的pref窗格中的某个“锚点”,就像在com.apple.preference.security pref窗格中一样? ?
答案 0 :(得分:0)
这有效......
tell application "System Preferences"
activate
tell pane id "com.apple.preference.security" to reveal anchor "Firewall"
end tell