Applescript 10.7:无法获取窗格id“com.apple.preference.security”的锚“FileVault”

时间:2011-09-14 21:54:01

标签: macos applescript osx-lion

我正在尝试使用Applescript访问“FileVault”标签。有人可以帮助我吗?

这是我收到错误的地方:

reveal anchor "FileVault" of pane id "com.apple.preference.security"

1 个答案:

答案 0 :(得分:2)

由于某种原因,锚在内部具有不同的名称:

tell application "System Preferences"
    get every anchor of pane id "com.apple.preference.security"
        --> {anchor "Firewall" of pane id "com.apple.preference.security",
             anchor "FDE" of pane id "com.apple.preference.security",
             anchor "General" of pane id "com.apple.preference.security",
             anchor "Privacy" of pane id "com.apple.preference.security"}
end tell

我怀疑“FileVault”锚是为旧的仅限主目录的文件库加密设置保留的,如果您仍在使用该方案,它只会显示(如“Legacy FileVault”,iirc?)。 / p>