JEditからFireFox上でYahoo英和辞書を開く

JEditのApplescriptマクロです。
JEditで選択した単語に従い、FireFox上でYahooの英和辞書を開きます。
まわりくどいスクリプトですが、どうも、これがうまく動くみたいです。


tell application "Jedit X"
tell front document
set theURL to "http://dic.yahoo.co.jp/dsearch?enc=UTF-8&stype=0&dtype=1&p=" & selected text
--set CLBD to the clipboard うまくいかない
tell application "Firefox"
activate
delay 0.1
set the clipboard to theURL
tell application "System Events" to keystroke "t" using {command down}
--delay 1
tell application "System Events" to keystroke "l" using {command down}
tell application "System Events" to keystroke "v" using {command down}
tell application "System Events" to keystroke return
end tell
--set the clipboard to CLBD
end tell
end tell

このブログ記事について

このページは、shigetaが2009年9月24日 22:19に書いたブログ記事です。

ひとつ前のブログ記事は「Tab Mix PlusとAuto Dial 8」です。

次のブログ記事は「編曲の楽譜」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。