Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Created January 8, 2013 18:13
Show Gist options
  • Save ttscoff/4486352 to your computer and use it in GitHub Desktop.
Save ttscoff/4486352 to your computer and use it in GitHub Desktop.
Rough script to sync Mac Notes.app notes to nvALT
-- rough script to sync Mac Notes.app notes to nvALT
-- will overwrite existing files with the same title
-- which also makes it able to update notes with changes
-- does _not_ delete notes not found in Notes.app
property notes_folder : "/Volumes/Raptor/Users/ttscoff/Dropbox/nvALT2.2/"
tell application "Notes"
repeat with _note in notes
set output_file to name of _note & ".md"
set output_content to (do shell script "echo " & quoted form of (body of _note as string) & "|~/scripts/html2text > \"" & notes_folder & output_file & "\"")
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment