apple-notes-sdk-patterns

Featured

Apply production-ready patterns for Apple Notes JXA/AppleScript automation. Trigger: "apple notes patterns".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Apple Notes SDK Patterns ## Overview Production patterns for Apple Notes automation: JXA wrapper class, error handling, batch operations, and cross-account support. ## Instructions ### Step 1: JXA Client Wrapper (Node.js) ```typescript // src/notes-client.ts import { execSync } from "child_process"; class AppleNotesClient { private runJxa(script: string): string { const escaped = script.replace(/'/g, "\\'"); return execSync(`osascript -l JavaScript -e '${escaped}'`, { encoding: "utf8", timeout: 30000, }).trim(); } listNotes(folder?: string, limit: number = 50): Array<{ id: string; title: string; modified: string }> { const script = folder ? `const Notes = Application("Notes"); const f = Notes.defaultAccount.folders().find(f => f.name() === "${folder}"); (f ? f.notes() : []).slice(0, ${limit}).map(n => JSON.stringify({id: n.id(), title: n.name(), modified: n.modificationDate().toISOString()})).join("\\n")` : `const Notes = Application("Notes"); Notes.defaultAccount.notes().slice(0, ${limit}).map(n => JSON.stringify({id: n.id(), title: n.name(), modified: n.modificationDate().toISOString()})).join("\\n")`; return this.runJxa(script).split("\n").filter(Boolean).map(l => JSON.parse(l)); } createNote(title: string, body: string, folder?: string): string { const folderPart = folder ? `let f = account.folders().find(f => f.name() === "${folder}"); if (!f) { f = Notes.Folder({name: "${folder}"}); account.folders....

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

apple-notes-local-dev-loop

Set up local development workflow for Apple Notes automation with JXA hot reload. Trigger: "apple notes dev loop".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apple-notes-core-workflow-a

Build automated note management workflows with Apple Notes JXA scripts. Use when batch-creating notes, syncing content from external sources, organizing notes into folder hierarchies, or building note templates. Trigger: "apple notes workflow", "batch notes", "note templates", "organize apple notes", "sync notes".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apple-notes-performance-tuning

Optimize Apple Notes automation performance for large note collections. Trigger: "apple notes performance".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apple-notes-install-auth

Set up macOS automation access for Apple Notes via AppleScript, JXA, and Shortcuts. Use when configuring accessibility permissions, setting up osascript access, or initializing Apple Notes automation on macOS. Trigger: "setup apple notes", "apple notes automation", "apple notes permissions".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apple-notes-hello-world

Create, read, and list Apple Notes using JXA and AppleScript. Use when learning Notes automation, creating your first automated note, or testing read/write access to Apple Notes from scripts. Trigger: "apple notes hello world", "create apple note", "read apple notes", "apple notes example", "osascript notes".

2,266 Updated today
jeremylongshore