Applescript 10.7:无法获得锚点“FileVault";窗格 ID “com.apple.preference.security" [英] Applescript 10.7:Can’t get anchor "FileVault" of pane id "com.apple.preference.security"

查看:25
本文介绍了Applescript 10.7:无法获得锚点“FileVault";窗格 ID “com.apple.preference.security"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Applescript 访问FileVault"选项卡.有人可以帮我吗?

I am trying to access the "FileVault" Tab using Applescript. Can someone help me out?

这是我收到错误的地方:

This is where I am getting the error:

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

推荐答案

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

For some reason, the anchor has a different name internally:

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"锚点是为旧的仅主目录的 File Vault 加密设置保留的,只有在您仍在使用该方案时才会显示(如Legacy FileVault",iirc?).

I suspect that the "FileVault" anchor was reserved for the old home-directory-only File Vault encryption settings, which only show up (as "Legacy FileVault", iirc?) if you're still using that scheme.

这篇关于Applescript 10.7:无法获得锚点“FileVault";窗格 ID “com.apple.preference.security"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆