问题
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