tell application "System Events"
tell security preferences
get properties
end tell
end tell
脚本编辑器给出错误"系统事件出错:AppleEvent处理程序失败。"数字-10000
答案 0 :(得分:1)
因为properties
中没有secure preferences object
属性。
可用的属性是:
automatic login
log out when inactive
log out when inactive interval
require password to unlock
require password to wake
secure virtual memory
(返回错误,似乎是个错误)直接阅读一个属性,例如
tell application "System Events"
tell security preferences
get automatic login
end tell
end tell