How To Prevent Mac From Sleep and Stay Awake Using the Script

With the help of AppleScript, it is possible to prevent MacOS from going to sleep mode. This has a significant advantage as it can keep your messenger status online, including popular messengers like Microsoft Teams and Slack.

To keep your messenger status online on MacOS, you can utilize the lock screen settings. However, this may not be sufficient. A script has been written to simulate user activity by pressing keys, tricking the Macbook into thinking that the user is still active.

Step 1: Launch the Apple Script editor

Click on Launch Pad

Search for Script Editor and Launch

Click Here

Tags: Awake Stay