Skip to content

Instantly share code, notes, and snippets.

@rashita
Created January 22, 2014 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rashita/8553171 to your computer and use it in GitHub Desktop.
Save rashita/8553171 to your computer and use it in GitHub Desktop.
あらかじめ指定してあるキーワードでEvernoteを検索し、その結果をOmniOutlinerに放り込む。
tell application "Evernote"
set sarchnote to find notes "notebook:\"002 [プロジェクト]\" tag:\"▼MIT\""
if not (sarchnote = {}) then
repeat with var_note in sarchnote
set linename to (get title of var_note)
set linkname to (get note link of var_note)
my addrow(linename, linkname)
end repeat
else
set dialogtext to "プロジェクトはありません"
end if
end tell
on addrow(notename, notelink)
tell application "OmniOutliner"
set newtopic to (make with properties {topic:notename} new row at end of document 1)
set note of newtopic to notelink
end tell
end addrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment