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

<p>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.</p> <p>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.</p> <h2>Step 1: Launch the Apple Script editor</h2> <p>Click on Launch Pad</p> <p>Search for Script Editor and Launch</p> <p><a href="https://ganeshsirsi.medium.com/how-to-prevent-mac-from-sleep-and-stay-awake-using-the-script-3af354b4e0b"><strong>Click Here</strong></a></p>
Tags: Stay Awake