Created
August 24, 2014 11:10
-
-
Save nsmaciej/7c6bf1c77a6f7f891641 to your computer and use it in GitHub Desktop.
Repeatedly toggle Skype status using AppleScript
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
| # Not using "offline" beacuse of the wait.. | |
| set allowed_statuses to {"online", "dnd", "invisible", "away"} | |
| set delay_time to 0.5 | |
| repeat | |
| repeat with status in allowed_statuses | |
| delay delay_time | |
| log "Chaning status to " & status | |
| tell application "Skype" | |
| send command "SET USERSTATUS " & status script name "Toggler" | |
| end tell | |
| end repeat | |
| end repeat | |
| # Go back to online | |
| tell application "Skype" to send command "SET USERSTATUS online" script name "Toggler" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment