Last active
December 31, 2015 22:06
-
-
Save toshiharu/c8cd71ec51f3dfd66ee1 to your computer and use it in GitHub Desktop.
OS X の Evernote でインポートフォルダを作る
This file contains hidden or 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
| -- | |
| -- [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