apple-notes-data-handling

Featured

Handle Apple Notes data formats: HTML body, attachments, and rich content. Trigger: "apple notes data handling".

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 Data Handling ## Overview Apple Notes stores note content as a restricted subset of HTML internally. The `body()` property in JXA returns this HTML, which includes `<div>`, `<h1>`-`<h3>`, `<b>`, `<i>`, `<ul>`, `<li>`, and Apple-specific classes for checklists and tables. Attachments (images, PDFs, sketches, scans) are embedded as `<img>` or object references but cannot be directly extracted via JXA — they require the `attachments()` property. Understanding these data formats is essential for building reliable import, export, and backup pipelines. ## Note Body HTML Format ```html <!-- Apple Notes uses a subset of HTML wrapped in <div> blocks --> <div><h1>Title</h1></div> <div><br></div> <div>Paragraph text here.</div> <div><b>Bold text</b> and <i>italic text</i></div> <div><br></div> <div><ul><li>List item 1</li><li>List item 2</li></ul></div> <!-- Checklists use Apple's custom class --> <div><ul class="com-apple-note-checklist"> <li class="done">Completed item</li> <li>Incomplete item</li> </ul></div> <!-- Tables (macOS Ventura+) use standard HTML tables --> <div><table><tr><td>Cell 1</td><td>Cell 2</td></tr></table></div> <!-- Tags (macOS Sonoma+) are stored as hashtags in body text --> <div>#project #important</div> ``` ## Export All Notes to JSON ```bash #!/bin/bash # Full export with metadata — useful for backups and migration osascript -l JavaScript -e ' const Notes = Application("Notes"); const results = Notes.defaultAccount.notes().map(n ...

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 Featured

apple-notes-core-workflow-b

Export and convert Apple Notes to Markdown, JSON, HTML, and SQLite. Use when backing up notes, exporting to other apps, converting HTML to Markdown, or building searchable note archives from Apple Notes. Trigger: "export apple notes", "apple notes to markdown", "backup apple notes", "apple notes to JSON", "convert apple notes".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apple-notes-migration-deep-dive

Migrate notes between Apple Notes, Obsidian, Notion, and other platforms. Trigger: "apple notes migration".

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
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-sdk-patterns

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

2,266 Updated today
jeremylongshore