
image.png
使用齒輪的quickaction

image.png

image.png
雙擊run Application

image.png
on run {input, parameters}
set output to "https://translate.google.cn/#auto/zh-CN/" & urldecode(input as string)
tell application "Google Chrome" to open location 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
拷貝進去覆蓋,按command + s保存
就可以了

image.png

image.png