Applescript 10.7:Can’t get anchor “FileVault” of pane id “com.apple.preference.security”

不羁岁月 提交于 2019-12-11 05:47:43

问题


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"

回答1:


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

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.



来源:https://stackoverflow.com/questions/7423444/applescript-10-7can-t-get-anchor-filevault-of-pane-id-com-apple-preference-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!