Now available: JavaScript for InDesign, 2nd Edition
Learn how to harness the power of scripting in InDesign. And take advantage of a limited-time discount on this in-depth guide!


JavaScript for InDesign, by Peter Kahrel
We’re pleased to announce InDesignSecrets’ latest publication, the 2nd edition of Peter Kahrel’s JavaScript for InDesign (144-page PDF).
Just like Peter’s GREP in InDesign, this new book is formatted for easy reading on screen, with plenty of screenshots, and fully bookmarked, hyperlinked, and cross-referenced to make navigating it a breeze.
To see everything covered in the book, you can check out a PDF of the table of contents here.
Dive Deeper
Adobe InDesign is like an iceberg: The features you see in the panels and menus are only a small percentage of what’s actually available in the program; the rest lies below the surface. If you want to access those hidden riches, you just need to learn three relatively straightforward concepts:
- InDesign’s “Object Model” (how the program organizes itself internally and how it names its pieces),
- The basics of JavaScript, a scripting language that uses operators, properties, and other logical bits to manipulate web page and software program features; and finally,
- How to put those two together—that is, how to write JavaScript code that will access and manipulate Object Model components (pages, text frames, and so on).
In JavaScript for InDesign, author Peter Kahrel presents these three concepts in his usual clear and comprehensible manner. In fact, you’ll find yourself writing your first script within the first few pages. He covers everything from writing and testing JavaScripts, to how to troubleshoot the scripts that aren’t behaving well.
Grab your copy of JavaScript for InDesign to dive in and explore the rest of the iceberg.
This article was last modified on July 19, 2021
This article was first published on October 3, 2019
Hi there.
If possible, put the table of contents pages on the site to be informed of the contents of the book.
Thanks
Excellent idea. I just added a link to a PDF of the TOC.
The mentioned Adobe Javascipt editor is still 32 bit! Do not upgrade to Catalina just yet…
Or use Microsoft Visual Studio Code and the official (and maintained by Adobe itself) ExtendScript Debugger
Yeah! :)