Skip to content

Instantly share code, notes, and snippets.

@fionawhim
Created May 31, 2012 20:31
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fionawhim/2846012 to your computer and use it in GitHub Desktop.
Save fionawhim/2846012 to your computer and use it in GitHub Desktop.
Unlock screensaver via AppleScript in Lion
tell application "System Events"
if name of every process contains "ScreenSaverEngine" then
tell application "ScreenSaverEngine"
quit
end tell
keystroke <YOUR PASSWORD HERE>
keystroke return
end if
end tell
@netslow
Copy link

netslow commented Jun 4, 2013

Did you test it on Mac OS 10.7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment