Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Start a Google Hangout in Textual with `/hangout`
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
You can’t perform that action at this time.