generated at
コマンドランチャーからR-styleを開く
AppleScriptで、コマンドを受け付け、それによって動作を変えるアプリケーションを作る。

quick.scpt
display dialog "please coomand" default button 2 default answer "" set tmpText to result set rText to text returned of tmpText as text if rText is "R-style" then open location "https://rashita.net/blog/" else if rText is "ブクログ" or rText is "booklog" then open location "https://booklog.jp/" else if rText is "Twitter" then open location "https://twitter.com/" else if rText is "org-mode" then tell application "Terminal" do script "emacs ~/dropbox/text/draft.org.txt" activate end tell else display dialog "We don't have that command" end if

このアプリを起動するだけのAutomatorのサービス(クイックアクション)を作り、そのサービスにショートカットを当てれば疑似spotlightとして使える。