Created
August 19, 2010 20:55
-
-
Save tylerhall/538892 to your computer and use it in GitHub Desktop.
If you ever have a reason to repeatedly dial and hangup on someone, here's a Skype way to do it.
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
property ScriptName : "Repeat Call" | |
property PhoneToDial : "+15551234567" | |
repeat | |
tell application "Skype" | |
send command "CALL " & PhoneToDial script name ScriptName | |
delay 10 | |
set activeCalls to send command "SEARCH ACTIVECALLS" script name ScriptName | |
set activeCalls to characters 7 thru -1 of activeCalls as string | |
set activeCallsList to words of activeCalls | |
repeat with i from 1 to number of items in activeCallsList | |
set callID to item i of activeCallsList | |
send command "SET CALL " & first word of (callID as text) & " STATUS FINISHED" script name ScriptName | |
end repeat | |
delay 5 | |
end tell | |
end repeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment