AppleScriptSkype

From http://pastebin.com/cJTQAMe2

If you're on a Mac, I wrote a simple AppleScript that can be used with the alfred launcher (http://alfredapp.com):

(Based on http://blog.xam.dk/?p=187)

on alfred_script(q)
-- Update these with your conf call & DTMF numbers
if 'triage' is in q then
set phone_number to '08000518266'
set dtmf to ',,5265679349'
else if 'huddle1' is in q then
set phone_number to '08082389855'
set dtmf to ',,2386399332
'
end if

tell application 'Skype'
set active_call to send command 'CALL ' & phone_number script name ''
set skype_call_id to word 2 of active_call
delay 10
set bridge to 'ALTER CALL ' & skype_call_id & ' DTMF '
repeat with tone in the characters of dtmf
if tone contains ',' then
delay 2
else
send command bridge & ' ' & tone script name 's2'
delay 0.2
end if
end repeat
end tell

end alfred_script