How to run a script at login/logout in OS X?
I have some external USB 2.0 hard drives and they obnoxiously spin down every minute or so. Then when I go to do something on my Mac, I have to wait for the drives to spin up and it delays my workflow quite a bit. I have been researching these problems for several months now with no easy answers. My Google-foo finally found a Terminal command as such:
sudo pmset -a spindown 0
This seems to work and my drives no longer spin down. However, I'd like to be able to somehow execute this command automatically if I ever restart my computer. Is there a way to do that? I'm on Mac OS X 10.8.2 Mountain Lion.