Apple Notes

Search, read, and create Apple Notes using osascript/JXA on macOS. Use when this capability is needed.

tomevault-io Updated

File contents

Apple Notes

Interact with Apple Notes via JXA (JavaScript for Automation) on macOS.

Read Notes

osascript -l JavaScript -e '
  const app = Application("Notes");
  const notes = app.notes();
  notes.slice(0, 10).map(n => n.name());
'

Search Notes

osascript -l JavaScript -e '
  const app = Application("Notes");
  app.notes.whose({name: {_contains: "search term"}})().map(n => ({
    name: n.name(),
    modified: n.modificationDate()
  }));
'

Create a Note

osascript -l JavaScript -e '
  const app = Application("Notes");
  const folder = app.defaultAccount.folders.byName("Notes");
  app.make({new: "note", at: folder, withProperties: {name: "Title", body: "<h1>Title</h1><p>Content</p>"}});
'

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/kody-w--openrappter--apple-notes commit 2359c2dca0

Frequently asked questions

npx skillmds@latest add tomevault-io/apple-notes-11