Install
$ agentstack add skill-spillwavesolutions-automating-mac-apps-plugin-automating-word ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Automating Word (JXA-first, AppleScript discovery)
Relationship to the macOS automation skill
- Standalone for Word, aligned with
automating-mac-appspatterns. - Use
automating-mac-appsskill for permissions, shell execution, and UI scripting guidance. - PyXA Installation: To use PyXA examples in this skill, see the installation instructions in
automating-mac-appsskill (PyXA Installation section).
Core framing
- Word dictionary is AppleScript-first; discover there.
- JXA provides logic, data handling, and ObjC bridge access.
- Objects are specifiers; read via methods, write via assignments.
- Handle errors from Word operations using try/catch blocks and Application error checking.
Implementation Workflow
- Discover AppleScript Dictionary: Open Script Editor, browse Word's AppleScript dictionary to understand available objects and methods.
- Translate to JXA: Use discovered AppleScript syntax as reference for JXA equivalents, consulting the dictionary translation table.
- Set Up JXA Script: Initialize Word application object and document references.
- Implement Operations: Apply find/replace, table manipulation, or export using JXA methods.
- Test and Validate: Run script and verify document changes match expectations.
Quick Examples
Document opening:
// JXA
const word = Application('Microsoft Word');
word.documents.open('/path/to/document.docx');
# PyXA (Recommended)
import PyXA
word = PyXA.Word()
word.documents().open("/path/to/document.docx")
Find and replace:
// JXA
const range = word.activeDocument.content;
range.find.text = 'old text';
range.find.replacement.text = 'new text';
range.find.execute({replace: 'all'});
# PyXA
doc = word.active_document()
find_obj = doc.content().find()
find_obj.text = 'old text'
find_obj.replacement.text = 'new text'
find_obj.execute(replace='all')
Table creation:
// JXA
const table = word.activeDocument.tables.add(word.activeDocument.content, 3, 4);
table.cell(1, 1).range.text = 'Header';
# PyXA
table = doc.tables().add(doc.content(), 3, 4)
table.cell(1, 1).range().text = 'Header'
For PyObjC Scripting Bridge examples, see automating-word/references/word-pyxa.md.
Validation Checklist
After implementing Word automation:
- [ ] Test script execution without errors
- [ ] Verify document changes applied correctly
- [ ] Check ObjC bridge objects return expected values
- [ ] Run find/replace operations and confirm replacements
- [ ] Export documents and validate output formats
When Not to Use
- For general macOS automation (use
automating-mac-apps) - For Excel automation (use
automating-excel) - For non-Microsoft Office applications
- For web-based document processing (use web APIs or Playwright)
What to load
- Word JXA basics:
automating-word/references/word-basics.md(core concepts only; see references for advanced usage) - Recipes (ranges, find/replace, tables):
automating-word/references/word-recipes.md - Advanced patterns (export enums, ObjC bridge):
automating-word/references/word-advanced.md - Dictionary translation table:
automating-word/references/word-dictionary.md - PyXA (Python) alternative:
automating-word/references/word-pyxa.md
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: SpillwaveSolutions
- Source: SpillwaveSolutions/automating-mac-apps-plugin
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.