O'Reilly logo

Scripting InDesign CS3/4 with JavaScript by Peter Kahrel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with Text

With the relevant knowledge of InDesign’s object model, some idea about properties, and enough knowledge of JavaScript, we should now set about doing something useful with InDesign’s objects and their properties. We’ll begin with some aspects of text processing.

Adding, Replacing, and Removing Text

To add text to, let’s say, a paragraph, place the cursor anywhere in a paragraph in an InDesign document. Remember that each text object has insertion points. If you position the cursor at the very beginning of the paragraph, you in effect select the paragraph’s first insertion point, which in JavaScript ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required