At the moment, I am using a Word/Caffeine batch to avoid falling asleep, but when I open multiple documents, several instances of Caffeine appear and it becomes bothersome to close them manually.

I am wondering if there is a batch that can keep my computer from sleeping while Word or any other program is running, but will allow it to revert to the default sleep setting once the program is closed.

Askify Moderator Edited question May 1, 2023