Skip to content

Instantly share code, notes, and snippets.

@abruneau
Last active September 28, 2017 15:27
Show Gist options
  • Save abruneau/6d8739b753adc3e2191b02bd0fb2b6b1 to your computer and use it in GitHub Desktop.
Save abruneau/6d8739b753adc3e2191b02bd0fb2b6b1 to your computer and use it in GitHub Desktop.
List Folder notes #jxa #AppleNotes
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