【发布时间】:2011-07-05 03:00:21
【问题描述】:
我正在尝试通过蓝牙接近使用我的 iPhone 解锁我的 Mac,我正在使用的代码:
tell application "System Events"
tell security preferences
set require password to wake to false
end tell
end tell
tell application "ScreenSaverEngine" to quit
它会杀死屏幕保护程序,不显示密码框,但我得到的只是黑屏。所有应用程序仍在运行,但我将鼠标悬停在这个黑屏上。 我在 10.6.7 版本上运行两台显示器。 怎么了?谢谢。
lifehacker 文章http://lifehacker.com/5816791/use-a-bluetooth-phone-or-device-to-lock-and-unlock-your-mac-when-youre-near
【问题讨论】:
-
我遇到了同样的黑屏问题。我正在使用 OS X Lion。你找到解决方案了吗?
-
从来没有,经过一些测试(也从未使用过那个 shell 脚本)我放弃了。我很确定这是一件很棒的事情,但没有任何工作正常。
-
有同样的问题,但似乎屏幕保护程序已关闭,但我仍然被要求输入密码...有什么帮助吗?
标签: iphone macos bluetooth applescript