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

Select first line in new textframe with autoflowed text

New Here ,
Feb 02, 2023 Feb 02, 2023

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!

TOPICS
How to

Views

204

Translate

Translate

Report

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
Community Expert ,
Feb 02, 2023 Feb 02, 2023

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. 

 

▒► ID-Tasker / ID-Tasker Server - work smart not hard ◄▒

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Thanks a lot, that works like a charm 🙂

Votes

Translate

Translate

Report

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