Skip to content

Instantly share code, notes, and snippets.

@francisluong
Created November 3, 2014 19:31
Show Gist options
  • Save francisluong/54d236578a1f53f1848c to your computer and use it in GitHub Desktop.
Save francisluong/54d236578a1f53f1848c to your computer and use it in GitHub Desktop.
Applescript to start screen saver (lock screen) - bind to ctrl-command-l
#Service receives *no input* in *any application*
# bind to ctrl-alt-l in keyboard shortcuts
on run {input, parameters}
tell application "System Events" to start current screen saver
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment