一键导入
apple-note
Interact with Apple Notes on macOS - create, read, edit, search, and list notes
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interact with Apple Notes on macOS - create, read, edit, search, and list notes
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | apple-note |
| description | Interact with Apple Notes on macOS - create, read, edit, search, and list notes |
This skill enables you to interact with Apple Notes on macOS. You can create new notes, read existing notes, edit content, search for notes, and list folders/notes.
All scripts are located in scripts/ directory within this skill.
./scripts/list-accounts.sh
Use this first to discover available account names (e.g., "iCloud", "On My Mac", or an email address).
./scripts/list-folders.sh [account]
Default account: iCloud
./scripts/list-notes.sh [account] [folder]
Defaults: account=iCloud, folder=Notes
Returns: Note name, modification date, and preview (first 100 chars)
./scripts/get-note.sh [account] [folder] <note_name>
Reads the full content of a specific note.
./scripts/create-note.sh [account] [folder] <note_title> [note_content]
Creates a new note. Content is automatically wrapped in <div> tags for proper HTML formatting.
./scripts/update-note.sh [account] [folder] <note_name> <new_content>
Warning: This performs a FULL replacement of the note content.
For appending: first use get-note.sh, combine the content, then call update-note.sh.
./scripts/search-notes.sh [account] [folder] <keyword>
Searches both note names and bodies. Uses database-level filtering for fast results.
./scripts/rename-note.sh [account] [folder] <old_name> <new_name>
Renames an existing note.
./scripts/copy-note.sh [account] <source_folder> <note_name> <target_folder> [copy_name]
Creates a duplicate of a note in another folder. If copy_name is not specified, defaults to "original_name (copy)".
./scripts/move-note.sh [account] <source_folder> <note_name> <target_folder>
Moves a note from one folder to another.
./scripts/delete-note.sh [account] [folder] <note_name>
Warning: This action cannot be undone! The note is permanently deleted.
Apple Notes stores content as HTML. When creating or updating notes:
<div> tags<br> or separate paragraphs with </div><div><div>Line 1</div>
<div>Line 2</div>
<div>Line 3</div>
All scripts return structured error messages starting with Error:.
Common errors:
list-accounts.sh to find the correct account namelist-folders.sh to see available folderslist-notes.shIf you see permission errors, the user needs to:
list-notes.sh to get exact note names (case-sensitive)update-note.sh script replaces ALL content - read first if you want to appendBefore any operation, run list-accounts.sh to discover the user's account names. Many users have accounts other than "iCloud" (e.g., "On My Mac", email addresses, or custom names).
./scripts/list-accounts.sh
When calling add-attachment.sh or export-note.sh, always use absolute paths. If the user provides a relative path, convert it first using realpath or by constructing from the current working directory.
Important: Apple Notes does NOT support true programmatic file attachments. add-attachment.sh creates a file:// link in the note. The link is clickable but requires manual handling to open the file. For actual file attachments, users should manually drag files from Finder to Notes.
Do NOT use shell-based Markdown converters. They are fragile and cannot handle nested lists, multi-line code blocks, or complex formatting.
Instead, generate clean HTML directly:
<div><h1>Title</h1></div>
<div><p>Paragraph text with <b>bold</b> and <i>italic</i>.</p></div>
<div><pre><code>Code block here</code></pre></div>
<div><ul><li>Item 1</li><li>Item 2</li></ul></div>
<div> TagsApple Notes expects HTML content to be wrapped. Ensure your content starts with <div> and properly closes all tags.
All scripts use argv parameter passing, which safely handles quotes, backslashes, and special characters. You don't need to escape content - pass it as-is.
argv to handle special characters (quotes, backslashes, etc.)whose clause for database-level filteringImportant: Apple Notes' rich link previews (with thumbnails, titles, descriptions) cannot be created via AppleScript directly.
When you manually paste a URL in Notes, the UI process asynchronously fetches Open Graph data and creates a com.apple.notes.richlink attachment. AppleScript's set body bypasses this process, so <a href=URL>URL</a> links appear as plain underlined text.
HTML Links (Default) - Use create-note.sh with <a href=url>url</a>
Shortcuts Method - Requires manual setup
create-rich-link-via-shortcut.shAttachment Method - Experimental
create-rich-link-attachment.shFor most use cases, accept HTML links without preview. If rich previews are critical, use the Shortcuts method or manually paste URLs in Notes.