Copy link to clipboard
Copied
Is it possible to search for or select the first line in a textbox with autoflowed text? I have text with a first line indent, but when that text is the first line in a new textframe I don’t want that first line of the paragraph to be indented. Or maybe there is another way that I’m missing?
Thanks in advance!
Copy link to clipboard
Copied
Automatically - not possible - as this is a property of the paragraph itself - so it doesn't matter where paragraph is.
Only through scripting and assigning new ParaStyle.
But then you'll need to run script from time to time / when text reflows and re-apply correct ParaStyle to previously changed paragraphs.
Copy link to clipboard
Copied
… Quickly written!
Basically, placing the cursor in a story:
/*
by FRIdNGE, Michel Allio [02/02/2023]
*/
var mySel = app.selection[0],
myTFrames = mySel.parentStory.textContainers;
for ( var t = 0; t < myTFrames.length; t++ ) if ( myTFrames[t].paragraphs[0].insertionPoints[0].parentTextFrames[0].parentPage == myTFrames[t].parentPage ) myTFrames[t].paragraphs[0].firstLineIndent = 0;
alert( "Just For Fun!" )
(^/) The Jedi
Copy link to clipboard
Copied
Thanks a lot, that works like a charm 🙂