Skip to content

Instantly share code, notes, and snippets.

@chrisfsmith
Created January 19, 2017 14:26
Show Gist options
  • Save chrisfsmith/1c73320ab763de61e5b70e9d56928f9a to your computer and use it in GitHub Desktop.
Save chrisfsmith/1c73320ab763de61e5b70e9d56928f9a to your computer and use it in GitHub Desktop.
AppleScript to sleep the display immediately
do shell script "pmset displaysleepnow"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment