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

Add Paragraph Rules to all but the Last paragraph?

Advocate ,
Feb 13, 2017 Feb 13, 2017

Copy link to clipboard

Copied

My QUestion is as stated in the description.  Is there a code that Add's paragraph Rules to selected text/Frame minus the last paragraph (keeping Paragraph rules Previously in that Text frame)?

TOPICS
Scripting

Views

482

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

correct answers 1 Correct answer

LEGEND , Feb 13, 2017 Feb 13, 2017

Hi Chris,

Is this what you mean? 

var myParas = app.selection[0].paragraphs.everyItem().getElements(),

P = myParas.length;

for (p = 0; p < myParas.length-1; p++) myParas

.ruleBelow = true;

(^/)

Votes

Translate

Translate
LEGEND ,
Feb 13, 2017 Feb 13, 2017

Copy link to clipboard

Copied

Hi Chris,

Is this what you mean? 

var myParas = app.selection[0].paragraphs.everyItem().getElements(),

P = myParas.length;

for (p = 0; p < myParas.length-1; p++) myParas

.ruleBelow = true;

(^/)

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
Advocate ,
Feb 14, 2017 Feb 14, 2017

Copy link to clipboard

Copied

THank you very much That is exactly what i was wanting.

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
LEGEND ,
Feb 14, 2017 Feb 14, 2017

Copy link to clipboard

Copied

LATEST

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