Created
October 2, 2015 19:31
-
-
Save scoates/7e76e7ab00550a3150d8 to your computer and use it in GitHub Desktop.
Start a Google Hangout in Textual with `/hangout`
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
on textualcmd(inputString, destinationChannel) | |
tell application id "com.google.Chrome" | |
activate | |
delay 0.5 | |
if (count of (every window where visible is true)) is greater than 0 then | |
if URL of active tab of front window is not "chrome://newtab/" then | |
tell front window | |
make new tab | |
end tell | |
end if | |
else | |
make new window | |
end if | |
set URL of active tab of front window to "https://hangouts.google.com/start" | |
activate | |
delay 3 | |
return "Started hangout: " & URL of active tab of front window as text | |
end tell | |
end textualcmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment