Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Select first line in new textframe with autoflowed text

New Here ,
Feb 02, 2023 Feb 02, 2023

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!

TOPICS
How to
446
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 02, 2023 Feb 02, 2023

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. 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Feb 02, 2023 Feb 02, 2023

… 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 02, 2023 Feb 02, 2023
LATEST

Thanks a lot, that works like a charm 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines