Automate InDesign with JavaScript
On this page you’ll find the scripting API reference for InDesign and other Adobe apps, free scripts and automation workflows by Gregor Fellenz, and the book “InDesign automatisieren” with its sample code.
Reference
Adobe ExtendScript APIs
ExtendScript and UXP object models for InDesign, InDesign Server, Illustrator, Photoshop and Bridge, plus ScriptUI and core JavaScript. Searchable, works offline, with .d.ts files for code editors and llms.txt for AI agents.
Open source on GitHub
Free scripts for InDesign
A few InDesign scripts from real-world projects, free for you to use! Instructions and questions on GitHub.
-
chainGREP
Chains saved GREP queries into a script of its own that runs all replacements in one go.
-
clearOverrides
Clears local style overrides in text, tables and objects. Ships with InDesign among the InDesign Community Scripts since 2020.
-
press2id
Pulls WordPress posts including images into an InDesign document via the REST API.
Services by publishingX
InDesign automation, workflows and scripting
publishingX specialises in automated publishing workflows: from a single InDesign script to a complete pipeline that turns structured data into finished products with InDesign Server. InDesign is what we do – from marketing automation to book production.
-
Develop
Automation workflows and scripts with JavaScript, InDesign Server, XML and databases. AI-assisted development delivers better software faster and at lower cost.
-
Consult
Concepts for InDesign workflows and the efficient use of AI – drawing on many marketing, publishing and industrial projects.
-
Train
In-house training in InDesign scripting, IDML, XML and GREP, and in scripting with AI assistants – tailored to your needs.
The book (German)
InDesign automatisieren
Keine Angst vor Skripting, GREP & Co.
A German-language introduction to InDesign programming with ExtendScript, including a cookbook of ready-to-use scripts. In three parts, the book takes you from GREP through programming with JavaScript to automation in practice, including XML.