Ok so I posted this in the Mac OS X forums and got no replies (although 596!!! people viewed it), so I figured it was in the wrong forums so I am re-posting here:
Hey guys, I am pretty new to Mac, and sort of confused about some things. I know a lot of you guys are experts/pros and I was hoping for some in-depth help.
Here is my dilemma: I am trying to create some type of shortcut on the desktop that, when clicked on, will automatically launch Terminal and execute a command that will put my Macbook into hibernate mode (or 'safe sleep' mode as Apple calls it). I am a native Windows user, so please bear with me as I do not know/recognize many Apple terms and slang and shortcuts.
I have read places that I can create a script or something that reads:
sudo pmset -a hibernatemode 5
exit
and save it as something like 'hibernate.command'? On the contrast, if I want it to sleep as normal I would create a script saying:
sudo pmset -a hibernatemode 0
exit
and save it as something like 'sleep.command'? But the exact process is still unclear.
Do I have this right at all? Can I then save a shortcut of the terminal script (or the file itself) to the desktop---so that all I have to do is double-click it and the Terminal automatically opens and executes then closes itself (the 'exit' command?), and I can just close my lid to put my computer in safe sleep/hibernation (it saves the current session to disk and powers down)? Or is there a script I can write to tell the computer to save an image of the current session to disk then power down itself automatically? What text editor do I need/use to do this? I hope someone out there knows/understands what I am trying to accomplish. Please help! lol
If I have this all wrong, could someone please point me in the right direction, or could one of you experts perhaps walk me step-by-step thru this (please literally walk me step by step as if I am a dummy, lol----that's what I need, because I am trying to learn this), or post exactly what I need to do or send me a link link to the script written exactly as it's supposed to be? (Please, Please no smart-ass/degrading/badgering/begrudging comments like "why on earth would you want to hibernate your Mac, why not put it to sleep as normal?" or "I have mentioned this to you in various places/other forums" or "why not just use a third party software?". I have my reasons for wanting/needing to hibernate it---remember I am newbie to OS X, and your help/expertise is GREATLY appreciated).
Hey guys, I am pretty new to Mac, and sort of confused about some things. I know a lot of you guys are experts/pros and I was hoping for some in-depth help.
Here is my dilemma: I am trying to create some type of shortcut on the desktop that, when clicked on, will automatically launch Terminal and execute a command that will put my Macbook into hibernate mode (or 'safe sleep' mode as Apple calls it). I am a native Windows user, so please bear with me as I do not know/recognize many Apple terms and slang and shortcuts.
I have read places that I can create a script or something that reads:
sudo pmset -a hibernatemode 5
exit
and save it as something like 'hibernate.command'? On the contrast, if I want it to sleep as normal I would create a script saying:
sudo pmset -a hibernatemode 0
exit
and save it as something like 'sleep.command'? But the exact process is still unclear.
Do I have this right at all? Can I then save a shortcut of the terminal script (or the file itself) to the desktop---so that all I have to do is double-click it and the Terminal automatically opens and executes then closes itself (the 'exit' command?), and I can just close my lid to put my computer in safe sleep/hibernation (it saves the current session to disk and powers down)? Or is there a script I can write to tell the computer to save an image of the current session to disk then power down itself automatically? What text editor do I need/use to do this? I hope someone out there knows/understands what I am trying to accomplish. Please help! lol
If I have this all wrong, could someone please point me in the right direction, or could one of you experts perhaps walk me step-by-step thru this (please literally walk me step by step as if I am a dummy, lol----that's what I need, because I am trying to learn this), or post exactly what I need to do or send me a link link to the script written exactly as it's supposed to be? (Please, Please no smart-ass/degrading/badgering/begrudging comments like "why on earth would you want to hibernate your Mac, why not put it to sleep as normal?" or "I have mentioned this to you in various places/other forums" or "why not just use a third party software?". I have my reasons for wanting/needing to hibernate it---remember I am newbie to OS X, and your help/expertise is GREATLY appreciated).
Last edited: