Last active
August 29, 2015 14:08
-
-
Save mogya/e1416be50e521b43c36f to your computer and use it in GitHub Desktop.
spotlightでsleepできるようにする ref: http://qiita.com/mogya/items/8733b5ee1a071e96ae6e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ emacs ~/bin/sleep | |
#!/usr/bin/osascript | |
tell application "Finder" to sleep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
osascript -e 'tell application "Finder" to shut down' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript | |
tell application "System Events" to start current screen saver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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