Last active
September 28, 2017 15:27
-
-
Save abruneau/6d8739b753adc3e2191b02bd0fb2b6b1 to your computer and use it in GitHub Desktop.
List Folder notes #jxa #AppleNotes
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
const Notes = Application('Notes') | |
const folder = Notes.folders.whose({ | |
name: 'Astellia' | |
})[0] | |
return folder.notes().map((n) => { | |
return { | |
name: n.name(), | |
id: n.id(), | |
body: n.body(), | |
creationDate: n.creationDate(), | |
modificationDate : n.modificationDate() | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment