Skip to content

Instantly share code, notes, and snippets.

@toshiharu
Last active December 31, 2015 22:06
Show Gist options
  • Select an option

  • Save toshiharu/c8cd71ec51f3dfd66ee1 to your computer and use it in GitHub Desktop.

Select an option

Save toshiharu/c8cd71ec51f3dfd66ee1 to your computer and use it in GitHub Desktop.
OS X の Evernote でインポートフォルダを作る
--
-- [Mac] Evernote auto-import folder for Mac OS X - Evernote - Evernote User Forum
-- https://discussion.evernote.com/topic/29948-evernote-auto-import-folder-for-mac-os-x/
--
-- これを ~/Library/Scripts/Folder Action Scripts/ に置いて、
-- インポートフォルダにしたいフォルダのコンテクストメニューでフォルダアクション設定を行う。
--
on adding folder items to theFolder after receiving theNewItems
repeat with theNewItem in theNewItems
set myFile to (get info for theNewItem)
set myDestFile to (theFolder as string) & (name of myFile) as alias
set myTitle to (name of myFile)
set myNotebook to "My Notebook"
tell application "Evernote"
create note from file (myDestFile as alias) title myTitle notebook myNotebook
end tell
end repeat
end adding folder items to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment