Created
August 29, 2012 07:34
-
-
Save mootoh/3508021 to your computer and use it in GitHub Desktop.
Create an Evernote note from DayOne journal entry.
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
| -- | |
| -- See also: https://gist.github.com/3507997 | |
| -- | |
| on run {input, parameters} | |
| set theDate to date (item 1 of input) | |
| set theYear to item 2 of input | |
| set theTitle to item 3 of input | |
| set body to "" | |
| repeat with cur from 4 to count input | |
| set body to body & (item cur of input) & "\n" | |
| end repeat | |
| set year of theDate to theYear | |
| tell application "Evernote" | |
| set theNote to create note title theTitle with text body as text | |
| set creation date of theNote to theDate | |
| end tell | |
| return input | |
| end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment