Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Google Translate Automator Service
on run {input, parameters}
set output to "" & urldecode(input as string)
return output
end run
on urldecode(x)
set cmd to "'require \"cgi\"; puts CGI.escape('"
do shell script "echo " & quoted form of x & " | ruby -e " & cmd
end urldecode
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.