command line applescripts for toggling skype video and mute

The commands below can be used to turn video on or off, and turn mute on or off if you're logged in to a Mac OS X system. There are also some command line commands for setting the volume up or down for a mac.


osascript -e 'tell application "Skype" to set theResult to send command ("ALTER CALL " & (word 2 of (send command "SEARCH ACTIVECALLS" script name "skypetest")) as string) & " STOP_VIDEO_SEND" script name "skypetest"'
ALTER CALL 83374 STOP_VIDEO_SEND
osascript -e 'tell application "Skype" to set theResult to send command ("ALTER CALL " & (word 2 of (send command "SEARCH ACTIVECALLS" script name "skypetest")) as string) & " START_VIDEO_SEND" script name "skypetest"'
ALTER CALL 83374 START_VIDEO_SEND

osascript -e 'tell application "Skype" to set theResult to send command "SET MUTE ON" script name "skypetest"'
MUTE OFF
osascript -e 'tell application "Skype" to set theResult to send command "SET MUTE OFF" script name "skypetest"'
MUTE ON

osascript -e 'get volume settings'

osascript -e 'set volume output volume 0'

osascript -e 'set volume output volume 40'

If you're on a long Skype call where video is only needed periodically, and the operator of the other computer is away from the keyboard, you can use this to turn video on and off as required, provided you are logged in to the account. And if one party needs to mute the call, or turn the volume down, the other party can unmute and/or turn volume back up as required. Or you may wish to turn video/sound on/off programmatically.

-- linux macosx hints etc page