Reply To: Search for different indent sizes with one command?

Home Page / Forums / General InDesign Topics (CLOSED) / Search for different indent sizes with one command? / Reply To: Search for different indent sizes with one command?

#114006

Something simplistic like that:

var myParas = app.activeDocument.stories.everyItem().paragraphs;
for ( var p = 0 ; p < myParas.length ; p++) if ( myParas[p].firstLineIndent > 20 ) myParas[p].firstLineIndent = 20;

The script will search between all the paras of the doc those ones with a first line indent greater than 20 (so 41,31 mm / 32,75 mm / 33,78 mm / etc.) and will apply a “20” first line indent to them!

2 code lines but 1 single click! ;-)

Best,
Michel, for FRIdNGE

This article was last modified on January 29, 2019

Comments (0)

Loading comments...