indd

A way to run old-style JavaScript automation inside Adobe InDesign on macOS. ExtendScript is Adobe’s JavaScript-based scripting language for controlling InDesign documents and their contents.

In plain words
What is it for?
Use it to create or modify InDesign documents, place images, build tables, inspect fonts and styles, convert IDML files, and export PDF, PNG, JPG, or EPS files.
Why use it?
It lets an agent automate InDesign without manually performing document changes, exports, or inspections. The scripts must follow InDesign’s older JavaScript rules rather than modern Node.js syntax.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mindboard/indesign-extendscript-plugins/indd
Any agent
npx skills add mindboard/indesign-extendscript-plugins --skill indd
Clone the repo
git clone --depth 1 https://github.com/mindboard/indesign-extendscript-plugins

Made for: Claude Code, Codex.

Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,930 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00087 $0.07930
Opus 5 $0.00044 $0.03965
Sonnet 5 $0.00017 $0.01586
Haiku 4.5 $0.00009 $0.00793

Measured 2d ago against content hash 65e8615ac03b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

indd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/indd/SKILL.md · 549 lines

How it starts

The opening of the file, as written. The whole thing — 549 lines — stays where its author put it; the contents beside it link to each section on GitHub.

InDesign ExtendScript Runner

Automate Adobe InDesign on macOS by generating an ExtendScript (.jsx) file and executing it inside a running InDesign application via AppleScript.

InDesign ExtendScript is ECMAScript 3 (old JavaScript) plus an InDesign-specific DOM and Adobe's File/Folder/$ host objects. It is not Node.js or modern JS — no let/const/arrow functions/JSON.parse/template literals. Use var, classic function expressions, and the idioms shown below.

Prerequisites

  • macOS with Adobe InDesign installed (e.g. "Adobe InDesign 2026").
  • The script runs against the currently running InDesign. Many scripts assume an open document via app.activeDocument — make sure InDesign is open with the relevant document, or have the script create one with app.documents.add(...).

How to run a script

  1. Write the ExtendScript to a local file, e.g. /tmp/indesign-script.jsx.
  2. Execute it with osascript, telling InDesign to do script ... language javascript:
osascript -e 'with timeout of 300 seconds
tell application "Adobe InDesign 2026"
do script (POSIX file "/tmp/indesign-script.jsx") language javascript
end tell
end timeout'
  • Replace 2026 with the installed version year the user has (2024, 2025, 2026, …). Default to 2026 unless told otherwise.
  • Always pass an absolute POSIX path to the .jsx file.
  • Always wrap in with timeout of N seconds … end timeout. The default Apple event timeout is ~60s; longer scripts (enumerating app.fonts, placing images, building tables, exporting) fail with "AppleEvent timed out. (-1712)" without it. Verified: a font-enumeration script timed out at the default and succeeded with with timeout.
  • stdout of osascript is the value of the last evaluated expression in the .jsx. That is why the scripts below end with logs.join('\n') — it returns the collected log lines to the shell so you can read the result.

A reusable one-liner (adjust version + path):

Read the full file on GitHub · 549 lines

Files

What ships with it

52 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 549 lines · 87 tokens per session scan A 65e8615ac03b

Subscribe to this mod's changes

indd is a skill published in the GitHub repository mindboard/indesign-extendscript-plugins (4 stars, last pushed 10d ago), licensed MIT. It adds 87 tokens to every session and 7,930 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.