我是一个苹果机的使用者,为了在苹果机上方便快速地使用此网站,我做了一个小小的自动处理,
现在公布在这里,供大家分享。
目的:在苹果机上遇到要查的字或词,一个滑鼠右键动作就到此网站查出要查的字或词。
方法:
1)首先要下载免费程序OnMyCommand,用它来增加滑鼠右键的菜单。下载后,按照程序包的指示,
安装此程序。下载地址是:
http://www.abracode.com/free/cmworkshop/
下载OnMyCommand后,运行安装程序,“InstallOnMyCommandCM",然后logou再login。
从新打开下载的OnMyCommand,在OMCEdit的folder中,将OMCEdit程序放入Applications。
启动OMCEdit。
2)启动OMCEdit后,出现Command Descriptions窗口,点击New后,出现Edit Command窗口,
在Command Name中选择一个名字,建议用“Search Zdic for __OBJ_TEXT__”(不包含“”)。
Location选FirstLevel
ActivationMode选Selected Text
Execution Mode 选 AppleScript
最后在Commad中,把下面一段程序输入:
set theSel to "__OBJ_TEXT__" as Unicode text
set theNum to (count theSel)
if theNum < 2 then
set theURL to "http://www.zdic.net/zd/search/default.asp?q=" & theSel
else if theNum < 4 then
set theURL to "http://www.zdic.net/cd/search/?q2=" & theSel
else
set theURL to "http://www.zdic.net/cy/search/?q=" & theSel
end if
tell application "Safari"
open location theURL
end tell
然后点击Save。
当你在阅读中,遇到字或词需要查看Zdic.net时,先用滑鼠选择(hightlight)这个字或词,再
按右键(right-click),在右键的菜单中,将发现要找的字,选择后,你的浏览器将为你显示你
要的网页。
附带的文件是我的设置