apple-notes-common-errors
Installation
SKILL.md
Apple Notes Common Errors
Overview
Apple Notes automation errors fall into three categories: TCC permission denials from macOS security, AppleEvent communication failures between your script and Notes.app, and iCloud sync issues that cause data inconsistency. Unlike REST APIs that return HTTP status codes, Apple Events use negative OSStatus codes. This guide covers every error you are likely to encounter when automating Notes via JXA or osascript, with tested fixes for each.
Prerequisites
- The failed job's timestamp, opaque operation identifier, and a scoped read-only authorization test.
- A defined owner for TCC consent and device recovery; error handling must not change system-wide privacy settings.
- A paused write queue for incidents that may have partially completed a mutation.
Instructions
- Identify whether the failure is authorization, application availability, or synchronization before retrying.
- Capture only a redacted error classification and operation identifier; avoid dumping accounts, folders, or note content.
- Re-run a bounded read-only check after a supported UI or MDM recovery action.
- Reconcile a timed-out write against the operation ledger before retrying, then resume the queue only after owner approval.