apple-notes-updater

Update Apple Notes content by note name using osascript. This skill allows non-interactive updating of note content, preserving formatting and supporting HTML.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "apple-notes-updater" with this command: npx skills add cryptol0rd/apple-notes-updater

Apple Notes Updater

This skill provides a robust, non-interactive way to update the content of an Apple Note by its title. It uses osascript to directly interact with the Apple Notes application.

Usage

The primary function of this skill is to update a note's body.

Update Note by Title

To update a note, you will need the exact title of the note and the new content (which can include HTML tags for rich text formatting). The skill handles the safe transfer of the content via a temporary file, bypassing command-line argument limitations.

Example Script Usage:

./skills/apple-notes-updater/update_note.sh "My Note Title" "<h1>New Content</h1><p>With <b>HTML</b> formatting.</p>"

Underlying AppleScript Logic:

set noteTitle to "My Note Title"
set newBodyFilePath to (POSIX file "/path/to/temp/file.html") as alias -- Path to a temporary file containing HTML content

tell application "Notes"
    set theNote to first note whose name is noteTitle
    
    set fileRef to open for access newBodyFilePath
    set theContent to read fileRef as «class utf8»
    close access fileRef
    
    set body of theNote to theContent
end tell

Implementation Details

  • Uses osascript for direct Apple Notes application control.
  • Content (including HTML) is passed via a temporary file to ensure correct escaping and formatting.
  • Supports HTML within the newBody for rich text formatting.
  • Requires Apple Notes.app to be running and accessible.
  • macOS-only.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Aws Fis Experiment Prepare

Use when the user wants to prepare, create, or generate an AWS FIS (Fault Injection Service) experiment configuration. Triggers on "prepare FIS experiment",...

Registry SourceRecently Updated
General

Aws Fis Experiment Execute

Use when the user wants to run a prepared AWS FIS experiment where the CloudFormation stack has already been deployed. Triggers on "execute FIS experiment",...

Registry SourceRecently Updated
General

Warranty Return Dispute Kit

Organizes a defective-product, denied-warranty, or return-window dispute into an evidence packet, timeline, support message, escalation script, contact log,...

Registry SourceRecently Updated
General

Goldman Sachs Co

提供高盛公司历史、业务模式、市场地位及关键数据,助力研究投资银行和金融机构角色分析。

Registry SourceRecently Updated