tags:

views:

293

answers:

2

Is there some command line or AppleScript that I can write/run to make the machine go to sleep automatically or even better, into hibernate mode?

I can run the program as root.

+8  A: 
osascript -e 'tell application "Finder" to sleep'
Rob Kennedy
You know what? This question and answer has inspired me to go and learn applescript. I've been ignoring it for about 15 years since I stopped using Hypertalk.
Jonathan
I've only recently started dabbling with it myself. Good luck.
Rob Kennedy
+1  A: 
Coxy