Skip to content

Instantly share code, notes, and snippets.

@magnusstahre
Created August 28, 2011 14:43
Show Gist options
  • Save magnusstahre/1176750 to your computer and use it in GitHub Desktop.
Save magnusstahre/1176750 to your computer and use it in GitHub Desktop.
Tells OS X to sleep from command line
#!/usr/bin/env osascript
tell application "System Events" to sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment