打開Automator,新建service
接著

Paste_Image.png
第二步,選擇run applescript
on run {input, parameters}
set output to "http://fanyi.baidu.com/?aldtype=16047&tpltype=sigma#en/zh/" & urldecode(input as string)
return output
end run
on urldecode(x)
set cmd to "'require \"cgi\"; puts CGI.escape(STDIN.read.chomp).gsub(\"+\",\"%20\")'"
do shell script "echo " & quoted form of x & " | ruby -e " & cmd
end urldecode
第三步,如圖

Paste_Image.png
使用是右鍵就可以了

Paste_Image.png
同時(shí)給出一個(gè)朗文詞典的辦法,修改第二步的代碼就可以了!
on run {input, parameters}
set output to "http://www.ldoceonline.com/dictionary/" & input as string
return output
end run
有道詞典
on run {input, parameters}
set output to ("http://m.youdao.com/dict?le=eng&q=" & input as string)
return output
end run
當(dāng)然啦,這些用popclip也可以實(shí)現(xiàn),不過那個(gè)要跳轉(zhuǎn),比較麻煩!