Created
March 25, 2018 22:37
-
-
Save buddax2/a51b4452b47dc5d30d0f9ea511b5e52e to your computer and use it in GitHub Desktop.
Google Translate Automator Service
This file contains hidden or 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 run {input, parameters} | |
set output to "http://translate.google.com/translate_t?sl=auto&tl=uk&text=" & urldecode(input as string) | |
return output | |
end run | |
on urldecode(x) | |
set cmd to "'require \"cgi\"; puts CGI.escape(STDIN.read.chomp)'" | |
do shell script "echo " & quoted form of x & " | ruby -e " & cmd | |
end urldecode |
Thank you!\
Thank you
Thanks a lot friend
Found this Post
and updated the url to:
https://translate.google.com/#auto/en/" & urldecode(input as string)
Dropping the GET
url for the ReST Path
url style and going http:
-> https:
Works great!
Found this Post
and updated the url to:
https://translate.google.com/#auto/en/" & urldecode(input as string)
Dropping theGET
url for theReST Path
url style and goinghttp:
->https:
Works great!
I get an error when updating the url. I am no expert, what might I be doing wrong? Thank you in advance!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great!
Thank you!