automating-reminders
Installation
SKILL.md
Automating Reminders (JXA-first, AppleScript discovery)
Relationship to the macOS automation skill
- Standalone for Reminders; reuse
automating-mac-appsfor permissions, shell helpers, and ObjC debugging patterns. - PyXA Installation: To use PyXA examples in this skill, see the installation instructions in
automating-mac-appsskill (PyXA Installation section).
Core Framing
Reminders works like a database: everything is accessed via specifiers (references to objects). Start by exploring the Reminders dictionary in Script Editor (switch to JavaScript view). Read properties with methods like name() or id(); write with assignments. Use .whose for efficient server-side filtering to minimize performance overhead. For creation, use constructors + .push() instead of make to avoid errors. Note: no native move command—use copy-delete instead. Priority: 1 (high), 5 (medium), 9 (low), 0 (none). Recurrence/location scripting is limited; use Shortcuts for advanced features.
Quickstart (create + alerts)
First, ensure Reminders permissions are granted (see automating-mac-apps for setup).
JXA:
try {
const app = Application("Reminders");