Last active
November 9, 2017 12:52
-
-
Save mhberger/01a1217e579afe6051d7 to your computer and use it in GitHub Desktop.
Set skype status using command line.
This file contains 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
#!/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