gpt4 book ai didi

macos - 如何在 AppleScript 的 NS 首选项 Pane 中设置 anchor

转载 作者:行者123 更新时间:2023-12-03 17:25:16 35 4
gpt4 key购买 nike

我想通过 AppleScript 访问我自己的首选项 Pane 中的某个 tabView 项目,如下所示:

tell application "System Preferences"
reveal anchor "Firewall" of pane id "com.apple.preference.security"
end tell

有没有一种方法可以在 Interface Builder(或代码中)中设置 anchor 名称,以便我可以通过 AppleScript 访问我自己的首选项 Pane 中的某个“ anchor ”,就像在 com.apple.preference.security 首选项 Pane 中一样? ?

最佳答案

这有效...

tell application "System Preferences"
activate
tell pane id "com.apple.preference.security" to reveal anchor "Firewall"
end tell

关于macos - 如何在 AppleScript 的 NS 首选项 Pane 中设置 anchor ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7467073/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com