Last active
June 19, 2025 08:17
-
-
Save limkhashing/dd4b6798807826c0559b2aa50ae1066b to your computer and use it in GitHub Desktop.
Stay Active on Microsoft Teams!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
caffeinate -d & | |
while true; | |
do | |
osascript -e 'tell application "Microsoft Teams" to activate' | |
osascript -e 'tell application "System Events" to keystroke "2" using {command down}' | |
echo "Teams Status Refreshed" | |
sleep 300 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://medium.com/@jrhanso1/a-simple-script-to-stay-active-on-microsoft-teams-for-a-mac-1fff8a90743e