Introduction; Hello World!; The ExtendScript Toolkit (ESTK); Creating a Script In and Running it From the ESTK; Where to Save Scripts; Hidden Gems in the ESTK; InDesign's Object Model; Parents; Children; Three Special Parents; Collections of Objects; Properties; Methods; The Object Model Viewer; JavaScript; Some General Rules; Variables; Reserved Words; Strings; Strings and Numbers; Arrays; Arrays Versus Collections; Operators; Statements; Functions; Interacting with the User; Unicode Characters; Catching Errors; Running Scripts; Working with Text; Trick: Running Scripts Really Quickly
Summary
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