Scripting InDesign CS3/4 with JavaScript
Publisher: O'Reilly Media
Final Release Date: April 2009

Author note: In Adobe InDesign CS6, the changes to InDesign's scripting DOM are absolutely minimal. Therefore, the information in this title is valid and up to date for CS6.
Updated: August 2010. Author Peter Kahrel updated this Short Cut to cover InDesign CS5.

InDesign provides a powerful setof tools for producing beautifuldocuments. While you can certainlydo all your work by hand throughInDesign's graphical interface, thereare many times when it's much easier towrite a script. Once you've automateda task, you can run it over the wholedocument, ensuring consistency, orjust when you need it, simplifying andspeeding your layout process. All ittakes is a bit of JavaScript knowledgeand a willingness to explore InDesign'sprogramming features.

Product Details
About the Author
Recommended for You
Customer Reviews


by PowerReviews
O'Reilly MediaScripting InDesign CS3/4 with JavaScript

(based on 2 reviews)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 2 customers

Sort by

Displaying reviews 1-2

Back to top


The Best in Class

By Rick Gordon

from West Marin, CA

About Me Designer, Developer, Maker, Sys Admin

Verified Buyer


  • Accurate
  • Easy to understand
  • Helpful examples
  • Well-written


    Best Uses

    • Expert
    • Intermediate
    • Novice
    • Student

    Comments about O'Reilly Media Scripting InDesign CS3/4 with JavaScript:

    I come from years of AppleScipting InDesign, so I already had a good sense of the object model. I've also, in the last couple of years, Done Web/EPUB JavaScript and jQuery, but no experience with taking JS outside of the web DOM.

    There are only a couple of books on scripting InDesign, and it's probably worth have a couple; but this is "number 1."

    Peter Kahrel is arguably, along with a small handful of others (who are primary contenders), the foremost authority on this topic. And he knows how to explain it.

    He covers JavaScript basics, but doesn't get lost in it; the ins and outs of ExtendScript (which I still can't get to like); and the scripting of InDesign, with key insights.

    Since I'm primarily trying to get to the place where I can apply my already significant background in ID AS, and get up and running in ID JS, this book — and I've tried several others — was the first that really worked for me.

    (3 of 4 customers found this review helpful)


    Thanks for writing (and publishing) this book, really!

    By Anonymous

    from Undisclosed

    Comments about O'Reilly Media Scripting InDesign CS3/4 with JavaScript:

    This book was a lifesaver for me on the other day. The explanation at the beginning about the Object model was the key to most of my problems. Now that I learned how to address certain elements, my scripts started to work just how I wanted! Thanks again clearing things up!

    Displaying reviews 1-2

    Back to top

    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Ebook: $9.99
    Formats:  ePub, Mobi, PDF