Created
August 9, 2018 03:46
-
-
Save elasticthreads/c782601d01954ff1a774e6bd84f14e12 to your computer and use it in GitHub Desktop.
bit of code to export notes from Notes.app to a applescript list of records with the note body as HTML.
This file contains 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
set exportingNotesList to {} | |
tell application "Notes" | |
set theNotes to its notes | |
repeat with aNote in theNotes | |
set aNoteBody to body of aNote | |
set aNoteName to name of aNote | |
set end of exportingNotesList to {body:aNoteBody, name:aNoteName} as record | |
end repeat | |
end tell | |
return exportingNotesList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment