Skip to content

Instantly share code, notes, and snippets.

@mogya
Last active August 29, 2015 14:08
Show Gist options
  • Save mogya/e1416be50e521b43c36f to your computer and use it in GitHub Desktop.
Save mogya/e1416be50e521b43c36f to your computer and use it in GitHub Desktop.
spotlightでsleepできるようにする ref: http://qiita.com/mogya/items/8733b5ee1a071e96ae6e
$ emacs ~/bin/sleep
#!/usr/bin/osascript
tell application "Finder" to sleep
#!/bin/sh
osascript -e 'tell application "Finder" to shut down'
#!/usr/bin/osascript
tell application "System Events" to start current screen saver
#!/bin/sh
/Applications/Mission\ Control.app/Contents/MacOS/Mission\ Control 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment