automating-word

Automates Microsoft Word document editing and export via JXA and AppleScript dictionaries.

63|12|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/iBz-04/gloamy --skill automating-word
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: automating-word
Source: https://github.com/iBz-04/gloamy/tree/main/skills/automating-word
Command: npx skills add https://github.com/iBz-04/gloamy --skill automating-word

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates Microsoft Word tasks on macOS so you can generate, modify, and export documents without manual UI work.

Core Features & Use Cases

  • JXA-first Word automation: Discover Word’s AppleScript dictionary concepts and translate them into working JXA/ObjC bridge patterns.
  • Find/replace and range-based edits: Perform global search and replacement using Range objects for deterministic document updates.
  • Tables, exports, and batch workflows: Create and populate tables, then export documents (e.g., to PDF) and handle multiple files with guardrails like alert/screenUpdating state restoration.
  • PyXA alternative guidance: Use PyXA equivalents for common Word operations when you prefer Python.

Quick Start

Tell the AI to open a .docx file, replace all occurrences of "{{CLIENT}}" with "Acme Corporation", and export the result to a PDF.

Frequently Asked Questions about automating-word

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Microsoft Word document editing on macOS using JXA?

Automate Microsoft Word document editing on macOS using JXA by leveraging Word's AppleScript dictionary to translate object concepts into working JXA and ObjC bridge patterns for programmatic document manipulation without manual UI work.

How do I perform find and replace across a Word document range with JXA?

Perform find and replace across a Word document range with JXA by using Range objects for deterministic global search and replacement, applying correct parameters and enums within Word Application document specifiers to update text like template variables.

Can I batch convert Word documents to PDF on macOS without opening the UI?

Yes, you can batch convert Word documents to PDF on macOS without opening the UI by using JXA scripting to apply saveAs operations and handle multiple files with guardrails like screenUpdating state restoration.

How do I create and populate tables in a Word document via scripting?

Create and populate tables in a Word document via scripting by applying JXA table automation commands derived from the Word AppleScript dictionary, directly injecting data into table cells programmatically.

Does Word JXA automation require error handling for stable script execution?

Word JXA automation requires error handling for stable script execution because using try/catch blocks with Word Application document specifiers manages correct parameter and enum usage, preventing scripts from failing during saveAs or find operations.

What is the best way to automate Word tasks on macOS if I prefer Python over JXA?

The best way to automate Word tasks on macOS if you prefer Python over JXA is to use PyXA equivalent reference patterns, which provide similar object discovery and document manipulation capabilities for the same Word automation workflows.