Prevent display from turning off with certain applications I have a MacBook Pro, and during media presentations, my screen automatically turns off according to the settings app (which of course is operation as usual, to be expected).

I'm looking for an Applescript, setting, app, commandline command, etc. that could disable the auto screen shutoff per app rather than constantly having to change the setting globally. I've already looked for a setting within the app itself (ProPresenter, in this case) with no luck. I'm also okay if the solution bases its action on the presence or absence of a second display.
Caffeine is a small free app that can be used to temporarily override Mac settings such as sleep, screen dimming, and screen savers. The app lives in your menu dock, where you can click to turn it on (fill up the coffee cup) before your presentation, and then turn it back off (empty the coffee cup) after your presentation to set your settings back to normal.