Mail.appからOmniFocusに追加してくれるから、Evernoteを挟む必要はないので、なんの役に立つかは分からないけど作ってみた。まぁfind notesのテストみたいなもの。
Evernoteの特定のノートブック(ここではOF)にあるノートをもとにOminFocusのInboxにタスクを作成して、ノートを削除する。
tell application "Evernote" set matches to find notes "notebook:OF" repeat with n in matches set theTitle to title of n set theContent to HTML content of n tell application "OmniFocus" tell front document make new inbox task with properties {name:theTitle, note:theContent} end tell end tell delete n end repeat end tell |
問題はコンテンツがHTMLだということ。OFがタグまで表示してくれちゃう。Evernoteからテキストなコンテンツがとれるといいのに。
Evernoteのfind notesは結構時間がかかる。ので、notebookを指定して検索対象を少なくするといい。