Created
October 22, 2013 16:41
-
-
Save brianewing/7103939 to your computer and use it in GitHub Desktop.
Lock your Mac by pressing power button
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install "PowerBlock" (freeware) from this site: http://www.irradiatedsoftware.com/labs/ | |
Choose "Run AppleScript when power button is pressed" | |
Make it run this AppleScript: | |
do shell script "open /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment