Caffeinate Mountain Lion to prevent it from sleeping
While setting your Mac to automatically sleep after a period of inactivity has its energy-saving benefits, you may find that the system will go to sleep even when it is churning through data (e.g., applying a lengthy filter routine to groups of images).
This issue happens because Apple has implemented some changes to the latest versions of OS X that result in different requirements for the system to determine if it can go to sleep, and one of these is a new dependence on applications to invoke a "power assertion" to keep the system from going to … Read more