Created
April 11, 2013 17:29
-
-
Save acslocum/5365386 to your computer and use it in GitHub Desktop.
Make a call from skype, over and over, on OSX
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
#!/bin/bash | |
# Tell Skype to dial a number | |
if [ -z "$1" ] | |
then | |
echo "usage: skypecall PHONE_NUMBER NUMBER_OF_CALLS" | |
exit 65 | |
fi | |
counter=$2 | |
while [ $counter -gt 0 ] | |
do | |
osascript -e "tell application \"Skype\" to set theResult to send command \"CALL $1\" script name \"thescript\"" | |
sleep 10 | |
counter=$(($counter - 1)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Skype will pop up a security dialog the first time this is run, asking if you're sure you want to allow this to run.