Skip to content

Instantly share code, notes, and snippets.

@nsmaciej
Created August 24, 2014 11:10
Show Gist options
  • Save nsmaciej/7c6bf1c77a6f7f891641 to your computer and use it in GitHub Desktop.
Save nsmaciej/7c6bf1c77a6f7f891641 to your computer and use it in GitHub Desktop.
Repeatedly toggle Skype status using AppleScript
# 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