Skip to content

Instantly share code, notes, and snippets.

@elasticthreads
Created August 9, 2018 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elasticthreads/c782601d01954ff1a774e6bd84f14e12 to your computer and use it in GitHub Desktop.
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.
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