- Get Spark (for the keyboard shortcut)
- Get SleepDisplay (to sleep the display)
- Check "Require password to wake this computer from sleep or screen saver" in System Preferences->Security->General
- Create a new AppleScript Action in Spark with the following code:
do shell script "/Applications/SleepDisplay.app/Contents/MacOS/sleepdisplay"
do shell script "/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -module 'Computer Name'"
If you don't need to sleep the iMac display (have an external monitor with a power button), you can do this:
- Check "Enable fast user switching" in System Preferences->Accounts->Login Options
# This brings up "switch users", but doesn't keep the display killed
do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend"
No comments:
Post a Comment