← 返回
未分类

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.
使用 osascript 按笔记名称更新 Apple Notes 内容,支持非交互式更新,保留格式并支持 HTML。
cryptol0rd
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 2
Stars
📥 250
下载
💾 0
安装
1
版本
#latest

概述

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.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-12 05:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 266,924
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,571
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,363 📥 319,106