/automating-mac-apps:automating-pagesfrom automating-mac-apps
Automates Apple Pages documents using JXA with AppleScript dictionary discovery. Covers document creation, text/styling, export to PDF, tables, and image insertion via ObjC pasteboard bridging.
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 patterns.automating-mac-apps for permissions, shell, and UI scripting guidance.automating-mac-apps skill (PyXA Installation section).doc.body.text()) and assignments for writes (e.g., doc.body.text = 'new text').const pages = Application('Pages');
const doc = pages.Document({templateName: 'Blank'});
pages.documents.push(doc);
doc.body.text = "Hello World";
make new document becomes pages.documents.push(pages.Document()).IMPORTANT: Pages does NOT support direct image insertion like Keynote does:
// THIS WORKS IN KEYNOTE:
Keynote.Image({ file: Path("/path/to/image.png"), position: {x: 100, y: 100} });
// THIS DOES NOT WORK IN PAGES!
Pages.Image({ file: Path("/path/to/image.png") }); // ❌ Will fail
Solution: Use ObjC Pasteboard bridging (see pages-advanced.md for details):
ObjC.import('AppKit');
const nsImage = $.NSImage.alloc.initWithContentsOfFile("/path/to/image.png");
const pb = $.NSPasteboard.generalPasteboard;
pb.clearContents;
pb.setDataForType(nsImage.TIFFRepresentation, $.NSPasteboardTypeTIFF);
// Then use System Events to paste (Cmd+V)
Example Script: See automating-pages/scripts/insert_images.js for a complete working example.
Image constructor unlike Keynote. Use ObjC Pasteboard method.doc.save({in: file_path}) with a valid path object.automating-pages/references/pages-basics.md (Core objects and document lifecycle)automating-pages/references/pages-recipes.md (Standard operations)automating-pages/references/pages-export-matrix.md (PDF, Word, ePub formats)automating-pages/references/pages-template-strategy.md (Managing custom templates)automating-pages/references/pages-advanced.md (Complex integrations)automating-pages/references/pages-ui-scripting.md (Fallbacks)automating-pages/references/pages-dictionary.md (AppleScript to JXA mapping)automating-pages/references/pages-pyxa.mdautomating-pages/scripts/insert_images.js (ObjC Pasteboard method for inserting images)references/pages-advanced.md (opens in a new tab)references/pages-basics.md (opens in a new tab)references/pages-dictionary.md (opens in a new tab)references/pages-export-matrix.md (opens in a new tab)references/pages-pyxa.md (opens in a new tab)references/pages-recipes.md (opens in a new tab)references/pages-template-strategy.md (opens in a new tab)references/pages-ui-scripting.md (opens in a new tab)scripts/insert_images.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
apple-pages, jxa, applescript, macos-automation, document-generation
16 skills in this plugin
/automating-calendarAutomates macOS Calendar via JXA with AppleScript dictionary discovery. Use when asked to "create calendar events", "automate calendar", "JXA calendar scripting", "EventKit automation", or "PyXA calendar automation". Covers events, calendars, recurrence, time zones, batch operations, and EventKit ObjC bridge./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.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-pluginOther plugins' skills for the same job