/automating-mac-apps:automating-calendarfrom automating-mac-apps
Automates macOS Calendar via JXA with AppleScript dictionary discovery and EventKit bridge. Covers events, calendars, recurrence, time zones, batch operations.
Ships in automating-mac-apps. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
automating-mac-apps for general app permissions, shell commands, UI scripting, and cross-app automation patterns.automating-mac-apps skill (PyXA Installation section).Implementation Notes: See automating-calendar/references/calendar-basics.md
.whose()).Calendar.calendars.length > 0if (!event.id()) throw new Error('Event creation failed')Calendar.calendars.length > 0Basic Event Creation (JXA - Legacy):
const Calendar = Application("Calendar");
const event = Calendar.calendars[0].events.push(Calendar.Event({
summary: "Meeting",
startDate: new Date(),
endDate: new Date(Date.now() + 3600000)
}));
Basic Event Creation (PyXA - Recommended):
import PyXA
from datetime import datetime, timedelta
calendar = PyXA.Calendar()
# Get first calendar
work_calendar = calendar.calendars()[0]
# Create event
event = work_calendar.events().push({
"summary": "Meeting",
"start_date": datetime.now(),
"end_date": datetime.now() + timedelta(hours=1),
"location": "Conference Room A"
})
print(f"Created event: {event.summary()}")
PyObjC with EventKit (Advanced):
from EventKit import EKEventStore, EKEvent, EKCalendar
from Foundation import NSDate, NSTimeInterval
import objc
# Initialize event store
store = EKEventStore.alloc().init()
# Request access (async in real implementation)
# store.requestAccessToEntityType_completion_(EKEntityTypeEvent, None)
# Get default calendar
calendars = store.calendarsForEntityType_(EKEntityTypeEvent)
if calendars:
default_calendar = calendars[0]
# Create event
event = EKEvent.eventWithEventStore_(store)
event.setTitle_("Meeting")
event.setStartDate_(NSDate.date())
event.setEndDate_(NSDate.dateWithTimeIntervalSinceNow_(3600)) # 1 hour
event.setCalendar_(default_calendar)
# Save event
error = objc.nil
success = store.saveEvent_span_error_(event, EKSpanThisEvent, error)
if success:
print(f"Event created: {event.title()}")
else:
print(f"Error creating event: {error}")
EventKit Bridge Query (JXA - Legacy):
ObjC.import('EventKit');
const store = $.EKEventStore.alloc.init;
// See 'eventkit-query.md' for full predicate implementation
EventKit Bridge Query (PyObjC - Modern):
from EventKit import EKEventStore, EKEntityTypeEvent, NSPredicate
from Foundation import NSDate
store = EKEventStore.alloc().init()
# Get events for today
start_date = NSDate.date() # Today
end_date = NSDate.dateWithTimeIntervalSinceNow_(86400) # Tomorrow
calendars = store.calendarsForEntityType_(EKEntityTypeEvent)
predicate = store.predicateForEventsWithStartDate_endDate_calendars_(
start_date, end_date, calendars)
events = store.eventsMatchingPredicate_(predicate)
for event in events:
print(f"Event: {event.title()}, Start: {event.startDate()}")
automating-calendar/references/calendar-basics.mdautomating-calendar/references/calendar-recipes.mdautomating-calendar/references/calendar-advanced.mdautomating-calendar/references/calendar-dictionary.mdautomating-calendar/references/calendar-pyxa-api-reference.mdautomating-calendar/references/eventkit-query.mdautomating-calendar/references/eventkit-create.mdautomating-calendar/references/eventkit-timezones.mdautomating-calendar/references/eventkit-exceptions.mdautomating-calendar/references/eventkit-occurrence-cancel.mdreferences/calendar-advanced.md (opens in a new tab)references/calendar-basics.md (opens in a new tab)references/calendar-dictionary.md (opens in a new tab)references/calendar-pyxa-api-reference.md (opens in a new tab)references/calendar-recipes.md (opens in a new tab)references/eventkit-create.md (opens in a new tab)references/eventkit-exceptions.md (opens in a new tab)references/eventkit-occurrence-cancel.md (opens in a new tab)references/eventkit-query.md (opens in a new tab)references/eventkit-timezones.md (opens in a new tab)scripts/calendar_summary.py (opens in a new tab)scripts/create_calendar_event.py (opens in a new tab)scripts/delete_calendar_events.py (opens in a new tab)scripts/find_free_slots.py (opens in a new tab)scripts/list_upcoming_events.py (opens in a new tab)scripts/set_up_calendar_automation.py (opens in a new tab)scripts/set_up_calendar_automation.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (spillwavesolutions/automating-mac-apps-plugin) — no native marketplace selected
npx claudepluginhub p/spillwavesolutions-automating-mac-apps-plugins-automating-mac-apps-plugin16 skills in this plugin
/automating-chromeAutomates Google Chrome and Chromium-based browsers via JXA with AppleScript dictionary discovery. Use when asked to "automate Chrome tabs", "control browser with JXA", "Chrome AppleScript automation", "Chromium browser scripting", or "browser tab management". Covers windows, tabs, execute(), tunneling patterns, and permissions./automating-contactsAutomates macOS Contacts via JXA with AppleScript dictionary discovery. Use when asked to "automate contacts", "JXA contacts automation", "macOS address book scripting", "AppleScript contacts", or "Contacts app automation". Covers querying, CRUD, multi-value fields, groups, images, and ObjC bridge fallbacks./automating-excelAutomates Microsoft Excel on macOS via JXA with AppleScript dictionary discovery. Use when asked to "automate Excel spreadsheets", "JXA Excel scripting", "Excel macOS automation", or "bulk Excel data operations". Focuses on workbooks, worksheets, ranges, 2D arrays, performance toggles, and VBA escape hatches./automating-keynoteAutomates Apple Keynote using JXA with AppleScript dictionary discovery. Use when asked to "create Keynote presentations", "automate slide decks", "JXA Keynote scripting", or "generate presentations programmatically". Covers document lifecycle, slides, text, shapes, images, tables, charts, transitions, and UI scripting fallback./automating-mac-appsAutomates macOS apps via Apple Events using AppleScript (discovery), JXA (legacy), and PyXA (modern Python). Use when asked to "automate Mac apps", "write AppleScript", "JXA scripting", "osascript automation", or "PyXA Python automation". Foundation skill for all macOS app automation./automating-mailAutomates Apple Mail via JXA with AppleScript dictionary discovery. Use when asked to "automate email", "send mail via script", "JXA Mail automation", or "filter email messages". Covers accounts, mailboxes, batch message filtering, composition, attachments, and UI fallback.Other plugins' skills for the same job