Skip to content

Instantly share code, notes, and snippets.

@mhberger
Last active November 9, 2017 12:52
Show Gist options
  • Save mhberger/01a1217e579afe6051d7 to your computer and use it in GitHub Desktop.
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