Last active
January 4, 2016 04:59
-
-
Save rashita/8572227 to your computer and use it in GitHub Desktop.
検索ワードを入力し、ヒットしたノートタイトル&ノートリンクをOmniOutlinerへ。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set sarchtext to text returned of (display dialog "検索ワードを入れやがれ!" default answer "") | |
tell application "Evernote" | |
set sarchnote to find notes sarchtext | |
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