I need a little Applescript to lock the screen, the same behaviour I get when I click the Keychain icon in the menu bar and choose "Lock screen".
I found a way to activate the screensaver, but it's not exactly what I'm needing.
|
I need a little Applescript to lock the screen, the same behaviour I get when I click the Keychain icon in the menu bar and choose "Lock screen". I found a way to activate the screensaver, but it's not exactly what I'm needing. | |||
feedback
|
|
Do you realize in the Security Preference Pane you can require a password to wake from the screen saver, but it defaults to not requiring authentication? Then you can activate the screen saver with your method, or this AppleScript:
You could also add the Keychain lock and use this AppleScript that I found here.
This script requires Universal Access --> Enable access for assistive devices be checked. | |||
feedback
|
|
Here is a solution from Mac OS X Hints, but it seems to requires installing JackSMS first, whatever that is. Then you can do
| |||
|
feedback
|