Skip to content

Instantly share code, notes, and snippets.

@agragregra
Created January 6, 2020 22:18
Show Gist options
  • Save agragregra/f3a2c89eb31164ec57b63f07c0af7f9d to your computer and use it in GitHub Desktop.
Save agragregra/f3a2c89eb31164ec57b63f07c0af7f9d to your computer and use it in GitHub Desktop.
on run {input, parameters}
set phrase to input as string
set phrase to quoted form of phrase
set ui_lang to "ru"
set from_lang to "auto"
set to_lang to "ru"
do shell script "open 'https://translate.google.com/?hl='" & ui_lang & "'&sl='" & from_lang & "'&tl='" & to_lang & "'&text='" & phrase
end run
@applesean
Copy link

This doesn't seem to work in Big Sur 11.1. Any thoughts why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment