From f396adeb4587c9bfdbee964136c5052da8f3e641 Mon Sep 17 00:00:00 2001 From: Justin Searls Date: Tue, 29 Sep 2015 16:10:40 -0700 Subject: [PATCH] Preserve new lines By default, new lines get chewed up by Notes.app, but converting them to `
` tags works --- notes-import.scpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes-import.scpt b/notes-import.scpt index 5fe3d5f..d5b0ff8 100644 --- a/notes-import.scpt +++ b/notes-import.scpt @@ -35,7 +35,7 @@ folderContents.forEach(function(item) { var note = notesApp.Note({ 'name': item, - 'body': fileContents + 'body': fileContents.replace(/\n/g,'
') }) notesApp.folders[0].notes.push(note)