Created
May 31, 2016 03:05
-
-
Save aeisenberg/97ba0f1faa469972b10fb409db632e93 to your computer and use it in GitHub Desktop.
Use this apple script to migrate your files out of evernote and into notes.app.
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
tell application "Evernote" | |
set _Notebooks to every notebook | |
repeat with _NoteBook in _Notebooks | |
set _NoteBookName to name of _NoteBook | |
set _Notes to every note of _NoteBook | |
repeat with _Note in _Notes | |
set _NoteTitle to (title of _Note) | |
set _NoteText to (HTML content of _Note) | |
set _NoteCDate to the creation date of _Note | |
set _NoteMDate to the modification date of _Note | |
tell application "Notes" | |
tell account "iCloud" | |
if not (exists folder _NoteBookName) then | |
make new folder with properties {name:_NoteBookName} | |
end if | |
end tell | |
if _NoteText is not missing value then | |
log _Note | |
set theNoteID to make new note in folder _NoteBookName with properties {name:_NoteTitle, body:_NoteText, creation date:_NoteCDate, modification date:_NoteMDate} | |
end if | |
end tell | |
end repeat | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment