How to prevent Macbook pro to sleep if an app is running
I use R studio, and there are some scripts that has 1 or 2 hour running time. I know, that in the Settings > Lock screen tab I can set that never enter sleep mode, but it would be inconvenient many times.
My question is, is there a solution, that if the R studio app is running, it prevents the Macbook to enter sleep mode?
2020 M1 Macbook pro 13"
macOS Ventura 13.4.1
Thanks!
MacBook Pro 13″, macOS 13.4