Skip to content

Instantly share code, notes, and snippets.

@tylerhall
Created August 19, 2010 20:55
Show Gist options
  • Save tylerhall/538892 to your computer and use it in GitHub Desktop.
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.
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