From apple-notes-pack
Diagnose and fix common Apple Notes automation errors including permission denied, timeout, folder lookup failures, and crash recovery. Provides diagnostic scripts and quick fixes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/apple-notes-pack:apple-notes-common-errorsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
| Error | Code | Root Cause | Fix |
| Error | Code | Root Cause | Fix |
|---|---|---|---|
| Not authorized to send Apple events | -1743 | Missing automation permission | System Preferences > Privacy > Automation |
| AppleEvent timed out | -1712 | Notes.app busy or not running | Activate Notes first; increase timeout |
| Notes is not running | N/A | App closed | Add Application("Notes").activate() |
| Can't get folder | -1728 | Folder name mismatch | Check exact folder name including case |
| Connection is invalid | -609 | Notes crashed during operation | Restart Notes.app |
| User canceled | -128 | Security dialog dismissed | Re-run and click Allow |
#!/bin/bash
echo "=== Apple Notes Diagnostics ==="
echo -n "Notes.app running: "
pgrep -x Notes > /dev/null && echo "Yes" || echo "No"
echo -n "Note count: "
osascript -l JavaScript -e "Application(\"Notes\").defaultAccount.notes.length" 2>/dev/null || echo "ERROR"
echo -n "Folder count: "
osascript -l JavaScript -e "Application(\"Notes\").defaultAccount.folders.length" 2>/dev/null || echo "ERROR"
echo -n "Accounts: "
osascript -l JavaScript -e "Application(\"Notes\").accounts().map(a => a.name()).join(\", \")" 2>/dev/null || echo "ERROR"
echo "=== Done ==="
# Reset TCC permissions (if automation denied)
tccutil reset AppleEvents
# Force quit and restart Notes
killall Notes; sleep 2; open -a Notes
# Check iCloud sync status
defaults read com.apple.Notes
npx claudepluginhub kriptoburak/jeremylongshore-claude-code-plugins-plus-skills --plugin apple-notes-pack2plugins reuse this skill
First indexed Jul 17, 2026
Diagnoses and fixes Apple Notes automation errors including TCC permission denials, AppleEvent failures, and iCloud sync issues. Provides a diagnostic script and error reference table.
Automates Apple Notes via JXA. Use when asked to "create notes programmatically", "automate Notes app", "JXA notes scripting", or "organize notes with automation". Covers accounts/folders/notes, HTML bodies, queries, moves, and Objective-C/UI fallbacks for Notes.app automation on macOS.
Manages Apple Notes on macOS: create, search, read, update, delete, organize notes and folders. Uses MCP tools for safe formatting.