Skip to content

Instantly share code, notes, and snippets.

@mootoh
Created August 29, 2012 07:34
Show Gist options
  • Select an option

  • Save mootoh/3508021 to your computer and use it in GitHub Desktop.

Select an option

Save mootoh/3508021 to your computer and use it in GitHub Desktop.
Create an Evernote note from DayOne journal entry.
--
-- 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