How to disable sleep mode in mountain lion for an iMac
Hello, I am extremely annoyed after upgrading to Mountain Lion on my iMac. I want to permanently disable sleep mode on the iMac. Currently, it keeps trying to quit all the programs like iTunes while it is still downloading purchases, and if you leave the mac for several hours, you get several prompts in iTunes asking if you want to quit iTunes because you still have downloads remaining.
I have already set the energy saver preferences to "Never" sleep, but the iMac continues to try to put the computer to sleep, or at least to quit iTunes and other open programs.
I know I can run caffeinate, but that will only run while Terminal is open.
Thanks for any help.
iMac (21.5-inch Mid 2011), Mac OS X (10.7.4)