Indiscripts

Tag : SDK

So What's New in InDesign CS5.5 Scripting DOM

The interesting thing about tracking Scripting DOM changes from InDesign CS5 to InDesign CS5.5 is that this instantly reveals the main innovations of this ‘mid-cycle’ release —so that scripters can easily focus on the freshest features. The below PDFs offer you in a snap the tip of the iceberg: the new Article component and a bunch of new export options (HTMLExportPreference, EPubExportPreference, StyleExportTagMap, ObjectExportOption) that indicate the much greater integration of InDesign EPUB and digital publishing capabilities. Enjoy!

Download “What's New in InDesign CS5.5 Scripting | Object Members” (PDF)

Download “What's New in InDesign CS5.5 Scripting | Enumerators” (PDF)

• See also: “So What's New in InDesign CS5 Scripting DOM”

So What's New in InDesign CS5 Scripting DOM

Download “What's New in InDesign CS5 Scripting | Object Members” (PDF)

Download “What's New in InDesign CS5 Scripting | Enumerators” (PDF)

On ‘everyItem()’ – Part 2

In the previous episode we learned that every scripting DOM object is in fact an object specifier, which acts like a path in the InDesign object tree. Collection's methods only allow us to build object specifiers. Invoking a property or a method provided by a specifier causes InDesign to send a “verb-first command” to the underlying receiver(s). We will now consider how this process impacts your code, what is returned into your script and how to deal with some side effects.

Continue reading...

On ‘everyItem()’ – Part 1

Every collection in the scope of the InDesign Scripting DOM provides a method called everyItem. It remained undocumented until InDesign CS3, but scripting experts such as Dave Saunders had already pointed out its forcefulness and already knew how to exploit it. Here are some details about this esoteric syntax.

Continue reading...