2.1k
GitHub Stars
3
Bundled Files
2 months ago
Catalog Refreshed
3 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill openclaw/skills --skill apple-notes-updater- _meta.json294 B
- SKILL.md1.7 KB
- update_note.sh646 B
Overview
This skill updates Apple Notes content by note name using osascript. It performs non-interactive replacements of a note's body while preserving formatting and supporting HTML content. It is macOS-only and interacts directly with the Notes app via AppleScript.
How this skill works
The skill locates a note by its exact title and replaces its body with content read from a temporary file. It calls osascript to run AppleScript that opens the temp file as UTF-8, reads its contents (allowing HTML for rich text), and sets the note body. Passing content through a file avoids shell-escaping issues and preserves complex markup.
When to use it
- Automated workflows that need to update Notes without manual interaction
- Backing up or restoring note content programmatically
- Injecting rich HTML-formatted content into an existing note
- Scripting bulk updates where note titles are known
- Integrating Notes updates into CI, macros, or scheduled jobs on macOS
Best practices
- Ensure the target note title matches exactly, including punctuation and case
- Keep a backup of original note content before bulk updates
- Run the script with Notes.app running and accessible to avoid permission prompts
- Write the new body to a UTF-8 temporary file to preserve characters and HTML
- Test on a single note before applying bulk or automated updates
Example use cases
- Replace a meeting notes template across multiple notes using a script
- Restore note bodies from archived HTML exports during a migration
- Inject generated reports (HTML) into a central note for team review
- Automate daily status updates by overwriting a single note with fresh content
- Patch formatting or add signatures to notes that share a common title pattern
FAQ
It preserves HTML-based formatting in the note body; embedding images depends on Notes.app handling of the provided HTML and may require attachments handled separately.
What permissions are required?
The script requires access to run AppleScript against Notes.app and to read the temporary file. Granting automation permissions in macOS may be necessary.
Can it create a note if the title doesn't exist?
The core behavior targets an existing note by exact title. You can extend the script to create a new note when no match is found.