Created
April 26, 2012 13:16
-
-
Save kimhunter/2499478 to your computer and use it in GitHub Desktop.
Call someone with Skype
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 phoneNumber : "55522332" | |
tell application "Skype" to activate | |
delay 20 | |
tell application "System Events" | |
tell application process "Skype" | |
try | |
tell window "Dial Pad" to click | |
tell window "Dial Pad" | |
keystroke phoneNumber | |
click button "Call" | |
end tell | |
on error | |
keystroke "2" using command down | |
delay 2 | |
tell window "Dial Pad" | |
keystroke phoneNumber | |
click button "Call" | |
end tell | |
end try | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment