SkillsReviewed · SpillwaveSolutions

Automating Pages

Automating Pages is an assistant skill for Mac users and developers creating Apple Pages documents, but image insertion relies on clipboard and keyboard automation. It supplies JXA, AppleScript and optional Python examples for templates, text, tables and export. Compatibility and runtime reliability have not been assessed.

Researched 17 Nov 2026

In short.

Automating Pages is an assistant skill for Mac users and developers automating Apple Pages, but its image workflow depends on the clipboard and active document. It combines JavaScript for Automation with AppleScript dictionary discovery, template guidance and optional PyXA examples. The material covers useful document tasks, but inconsistent API examples and incomplete checks in the image script require attention before use. Nothing was executed; supported versions, output fidelity and runtime reliability are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Covers plugins/automating-mac-apps-plugin/skills/automating-pages at revision 5f37bd4ecb1746fc86f3d618e8aa81fc6a61c486: SKILL.md, all eight reference files and scripts/insert_images.js, plus the repository-root LICENSE notice. The enclosing plugin, companion automating-mac-apps skill and external dependency sources are outside this scope. No installation, script, permission flow, document operation or export was executed; runtime compatibility, output quality and unattended reliability remain unassessed.

The overview

identity

Automating Pages is the automating-pages skill in SpillwaveSolutions/automating-mac-apps-plugin. Its folder contains SKILL.md, eight reference documents and scripts/insert_images.js. The entry file supplies assistant instructions and declares Bash, Read and Write tools.

The original source folder is [https://github.com/SpillwaveSolutions/automating-mac-apps-plugin/tree/main/plugins/automating-mac-apps-plugin/skills/automating-pages]. The source revision described here is 5f37bd4ecb1746fc86f3d618e8aa81fc6a61c486.

assessment

The material provides a concrete starting point for repetitive Pages work: opening templates, replacing text, saving documents and exporting files. It also explains how to investigate unsupported operations through Pages’ scripting dictionary.

The examples need reconciliation. SKILL.md uses doc.body.text, while the dictionary and recipes use doc.bodyText. Document creation also differs between the entry guide and basics reference. The evidence does not establish which forms work with a particular Pages version.

users

The clearest audience is Mac users producing repeated reports, letters or other documents from established Pages templates. Someone must be able to edit file paths, inspect scripts and check the resulting document.

JavaScript developers receive the main automation approach, while Python users receive a PyXA reference. Beginners will need to learn Pages’ scripting objects and macOS permission requirements. The guide excludes non-macOS use and complex page layout requiring manual design tools.

capabilities

The JXA references document creating, opening and saving documents; selecting templates; replacing placeholders; applying paragraph formatting; populating existing table cells; and exporting PDF, Microsoft Word and EPUB files. These are documented operations, with no execution results supplied.

The image script loads local images through AppKit and pastes them into Pages. The optional PyXA reference additionally presents Python examples for styles, tables, image placement and export, including plain text. Those Python APIs are unverified.

Using it

requirements

The examples require macOS, Apple Pages, accessible local files and a scripting runner. The supplied JavaScript script uses osascript and AppKit. Its keyboard automation requires System Events accessibility permission.

The skill declares Bash, Read and Write tools, but does not identify a supported assistant host or minimum software versions. It refers to a separate automating-mac-apps skill for permissions, shell guidance and fuller PyXA installation details; that companion is outside this folder. The Python reference requires Python and PyXA without version pins.

mechanism

JXA means JavaScript for Automation: JavaScript controls scriptable Mac applications through their exposed objects and commands. This skill recommends discovering Pages’ commands in Script Editor’s AppleScript dictionary, prototyping a small AppleScript operation, then translating it into JXA. Object references act as specifiers; examples call properties to read values and use assignments to write them.

For images, the supplied script loads a file with NSImage, clears the system clipboard, places TIFF image data on it, activates Pages and sends Command+V through System Events. It subsequently saves the document. The clipboard’s previous contents are not restored.

setup

Keep the skill folder and its reference files together. A host-specific skill installation command is not supplied. The guide’s preparation sequence is to inspect Pages’ scripting dictionary in Script Editor, verify a minimal AppleScript operation, then adapt it to JXA.

For image insertion, replace DOC_PATH and every IMAGES entry with appropriate local paths and prepare a document copy. The documented invocation is osascript -l JavaScript insert_images.js. Leaving DOC_PATH unchanged selects the front document. The optional Python route gives pip install pyxa without dependency versions. None of these steps was performed.

example

A concrete use is preparing a client report from an existing Pages template. The recipe reads doc.bodyText(), replaces every {{CLIENT}} placeholder with Acme and assigns the updated text to doc.bodyText. Other snippets show saving to a new .pages path and exporting the document as PDF with pages.export.

This combines documented snippets into an illustrative sequence. No resulting document or export is supplied, and the effect of rewriting the entire body text on existing formatting is unknown.

Assessment & evidence

limitations

The documented pasteboard route inserts images at the cursor. Its reference lists no direct coordinate placement or insertion into table cells, and says text wrapping may need manual adjustment. Keyboard actions depend on focus and timing. The cursor helper sends Command+Shift+E followed by Right Arrow; its claimed movement to the document end is unverified.

The image script skips only the exact placeholder /path/to/image1.png, leaving the other two default placeholder paths eligible for attempted loading. A failed image load returns an ERROR string, but processing continues and the document is saved. SUCCESS follows a paste keystroke without inspecting the document, and a Completed response can include image errors.

The PyXA reference presents a separate direct-image API with positioning, but supplies no validation or supported version. The evidence does not resolve that route’s relationship to the JXA material’s broad claims about image-insertion limits.

reasoning

The strongest practical approach described is template reuse: prepare layout, styles and tables in Pages, then automate content changes. This follows the template guide’s rationale that creating complex objects through JXA is brittle.

That approach can reduce the amount of layout scripting needed, but it still requires checking content replacement and exports. Features missing from the scripting dictionary introduce UI actions and waits. Reliable unattended operation is not established.

alternatives

The guide suggests AppleScript when JavaScript would add unnecessary complexity. For cross-platform document work it names python-docx or pandoc, and for web-based Google documents it names the Google Docs API. It recommends manual design tools for complex layout.

PyXA is an alternative language interface within the folder for people who prefer Python while retaining Pages as the target application. Comparative reliability, feature parity and installation compatibility were not assessed.

evidence

The supplied material consists of the skill entry, eight references, one JavaScript script and the repository’s MIT notice. It establishes the documented approach and visible code paths. It includes no execution results, benchmarks, compatibility reports or generated output files.

The original entry file at the specified revision is [https://raw.githubusercontent.com/SpillwaveSolutions/automating-mac-apps-plugin/5f37bd4ecb1746fc86f3d618e8aa81fc6a61c486/plugins/automating-mac-apps-plugin/skills/automating-pages/SKILL.md]. No code was executed.

Access & freshness

costs

The MIT notice grants software rights without a licence fee. Total operating cost is unknown: the material supplies no pricing for hardware, an assistant host, Pages or optional dependencies. No required model, token budget, measured time saving or cost benchmark is identified.

rights

The repository’s MIT License names Richard Hightower as copyright holder, dated 2024. It permits use, modification, publication, redistribution, sublicensing and sale of the software and associated documentation. Copies or substantial portions must retain the copyright and permission notices. The software carries no warranty.

The notice does not establish rights to documents, templates or images supplied by a user, or the licence terms of external dependencies. The original notice is at [https://raw.githubusercontent.com/SpillwaveSolutions/automating-mac-apps-plugin/5f37bd4ecb1746fc86f3d618e8aa81fc6a61c486/LICENSE].

freshness

The source snapshot was captured on 17 November 2026 at revision 5f37bd4ecb1746fc86f3d618e8aa81fc6a61c486. That capture date does not establish a release date or last maintenance date.

No tested macOS, Pages or PyXA versions are identified. The UI reference explicitly notes that interface paths vary by version. Compatibility with a particular installation remains unknown.

actions

Before relying on the examples, reconcile the body-text and document-creation syntax against the installed Pages dictionary and check one minimal operation on a document copy. Validate any PyXA calls against the installed package.

Replace every placeholder image path, confirm the intended document and insertion point, and preserve clipboard contents separately if needed. The image script clears the clipboard and saves the document. Inspect inserted images and actual PDF, Word or EPUB output for the formatting your work requires. These checks have not been performed.

Evidence for this report

LICENSEnotice · checked 2026-11-17