Stop your Mac from going to sleep.
in the Mac App Store
Don't Sleep blocks screen dimming, screen saver and sleep.
Important: Don't Sleep will NOT stop your MacBook from sleeping when you close the lid.
Click on the icon in the menu bar to use. Right-click/⌘-click to instantly activate and deactivate.
Mac OS X 10.6.6 or higher.