apple-notes-data-handling

Featured

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

AI & Automation 2,926 stars 433 forks Updated yesterday 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
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category