Last active
February 7, 2016 19:51
-
-
Save martinraison/db1b732e877baad4d93f to your computer and use it in GitHub Desktop.
Calling someone from the OSX terminal
This file contains hidden or 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
#!/usr/bin/env osascript | |
-- usage: facetime [email protected] | |
on run {contact} | |
do shell script "open facetime://" & contact | |
tell application "System Events" | |
repeat while not (button "Call" of window 1 of application process "FaceTime" exists) | |
delay 1 | |
end repeat | |
click button "Call" of window 1 of application process "FaceTime" | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment