code_junkie

In Mac OS X, is there a programmatic way to get the machine to go to sleep/hibernate?

Nov 13th, 2011
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. osascript -e 'tell application "Finder" to sleep'
  2.  
  3. pmset -a hibernatemode 1; osascript -e 'tell application "Finder" to sleep'
Add Comment
Please, Sign In to add comment