Skip to content

Instantly share code, notes, and snippets.

@scoates
Created October 2, 2015 19:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scoates/7e76e7ab00550a3150d8 to your computer and use it in GitHub Desktop.
Save scoates/7e76e7ab00550a3150d8 to your computer and use it in GitHub Desktop.
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