Skip to content

Instantly share code, notes, and snippets.

@dillonhafer
Created November 25, 2014 19:30
Show Gist options
  • Save dillonhafer/ad31dcdbcbbba236f293 to your computer and use it in GitHub Desktop.
Save dillonhafer/ad31dcdbcbbba236f293 to your computer and use it in GitHub Desktop.
Translate selected text to Spanish with Google translate
on run {input, parameters}
tell application "Google Chrome"
set newTab to make new tab at end of tabs of window 1
set translateURL to "https://translate.google.com/#auto/es/"
set URL of newTab to translateURL & input
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment