Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set skype status using command line.
#!/usr/bin/env bash
STATUS=$1
if [ -z "$STATUS" ] ; then echo "usage $0 [ONLINE|AWAY]" ; exit; fi
(cat <<EOF
tell application "Skype"
send command "SET USERSTATUS ${STATUS}" script name "Set Skype Status"
end tell
EOF
) | osascript
# A couple of aliases
# alias skypeaway='~/bin/setSkypeStatus.sh AWAY'
# alias skypeback='~/bin/setSkypeStatus.sh ONLINE'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.