Created
January 8, 2013 18:13
-
-
Save ttscoff/4486352 to your computer and use it in GitHub Desktop.
Rough script to sync Mac Notes.app notes to nvALT
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
-- 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