Automates Microsoft Word via JXA with AppleScript dictionary discovery. Use when asked to automate Word documents, find and replace in Word, JXA Word scripting, or create Word documents programmatically. Covers documents, ranges, find/replace, tables, export, and ObjC bridge patterns.
automating-mac-apps patterns.automating-mac-apps skill for permissions, shell execution, and UI scripting guidance.automating-mac-apps skill (PyXA Installation section).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.
After implementing Word automation:
automating-mac-apps)automating-excel)automating-word/references/word-basics.md (core concepts only; see references for advanced usage)automating-word/references/word-recipes.mdautomating-word/references/word-advanced.mdautomating-word/references/word-dictionary.mdautomating-word/references/word-pyxa.mdnpx skills add SpillwaveSolutions/自动化 Microsoft Word下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer