Jump to content

pdxmph

Level 1
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

5 Neutral

About pdxmph

  1. You just need to grab the "date sent" attribute when you look at the original note, then add it as the "created" property to the newly created Evernote item. The AppleScript version: tell application "Mail" set theMessages to every message of the mailbox "NoteMigrate" repeat with thisMessage in theMessages set myTitle to the subject of thisMessage set myText to the content of thisMessage set myCreateDate to the date sent of thisMessage tell application "Evernote" create note with text myText title myTitle notebook "Imported Notes" tags "imported_note" created myCreateDate end t
  2. Well, it was pretty easy in AppleScript, too, since I had some scrap code from a while back. Same deal as before: Drag all the notes into a new mailbox called "NoteMigrate." No error checking or anything. Worked for me: tell application "Mail" set theMessages to every message of the mailbox "NoteMigrate" repeat with thisMessage in theMessages set myTitle to the subject of thisMessage set myText to the content of thisMessage tell application "Evernote" create note with text myText title myTitle notebook "Imported Notes" tags "imported_note" end tell end repeat end tell
  3. This is very easy in Ruby using appscript. The main point is, the notes have to be dragged into a new mailbox. For whatever reason, the Notes "folder" doesn't exist where Mail's scripting is concerned. In this example, I made a new mailbox called "NoteMigrate" so it appeared under "On My Mac." The script will create a notebook called "ImportedMessages" if you don't have one already, and it will tag each note with "imported_note." The first line of a given note is the 'subject.' All the lines of a note, including the first, are the content. #!/usr/bin/ruby require 'rubygems' require 'app
×
×
  • Create New...