Skip to content

Instantly share code, notes, and snippets.

@mhberger
Last active November 9, 2017 12:52
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mhberger/01a1217e579afe6051d7 to your computer and use it in GitHub Desktop.
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