2011/02/04追記
↓のやり方の方がいいです。
automatorを使ってコンテキストメニューにサービス追加 - うんたらかんたら日記
2011/02/03記事
mac便利ですね。
ブラウザ上で、知らない英単語に出会っても
[右クリック]ー[コンテキストメニュー]から
[スピーチ]ー[読み上げを開始]を選択すれば
おっさんが、発音してくれます。
pdf見てる時とかでも、キーボードショートカット1個で
できないものかと調べていたら
applescript + sparkでできました。
できたと思ったけど、clipboardへの転送がうまくいかない場合が多発。
とりあえず、下記のみを登録して使用中。
say (get the clipboard)
やりかた
sparkにapplescriptを登録
こちらを参考にさせていただきました。
文字列の取得 by AppleScript
下記applescriptを登録します。
set frontmostApp to path to frontmost application tell application "Finder" set appName to name of frontmostApp end tell if appName ends with ".app" then set appName to text 1 thru -5 of appName end if activate application appName tell application "System Events" tell application process appName keystroke "c" using command down end tell end tell say (get the clipboard)