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

Hi pls help me

Guide ,
Nov 29, 2010 Nov 29, 2010

Copy link to clipboard

Copied

Hi,

Anyone have script for applying keep option in all paragraph styles?

TOPICS
Scripting

Views

888

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

Guru , Nov 29, 2010 Nov 29, 2010

Surely you can:

var parStyles = app.activeDocument.allParagraphStyles;
keepAllLinesTogether = true;
for (var i = 1; i < parStyles.length; i++) {
      parStyles.keepLinesTogether = true;
      parStyles.keepFirstLines = 1;
      parStyles.keepLastLines = 2;
}

Kasyan

Votes

Translate

Translate
Guru ,
Nov 29, 2010 Nov 29, 2010

Copy link to clipboard

Copied

Something along those lines:

var parStyles = app.activeDocument.allParagraphStyles;
keepAllLinesTogether = true;
for (var i = 1; i < parStyles.length; i++) {
     parStyles.keepLinesTogether = true;
     parStyles.keepAllLinesTogether = 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
Guide ,
Nov 29, 2010 Nov 29, 2010

Copy link to clipboard

Copied

Hi Kasyan,

Thanks for your quick reply. But i need to given value of start 1 line and end 2 line. How can i do that?

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
Guru ,
Nov 29, 2010 Nov 29, 2010

Copy link to clipboard

Copied

Surely you can:

var parStyles = app.activeDocument.allParagraphStyles;
keepAllLinesTogether = true;
for (var i = 1; i < parStyles.length; i++) {
      parStyles.keepLinesTogether = true;
      parStyles.keepFirstLines = 1;
      parStyles.keepLastLines = 2;
}

Kasyan

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 ,
Nov 29, 2010 Nov 29, 2010

Copy link to clipboard

Copied

Hi ,

You are genius man!!! one small request, over 5 year experience in Indesign, i want to learn this automation, can you please help me? Please don't send any referral pdf or web links. I already have lot of books. But i partially understand the things. I don't know how to use the object models. I am ready to pay any amount if you want. Pls help me.........

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 ,
Nov 29, 2010 Nov 29, 2010

Copy link to clipboard

Copied

Start by browsing this forum.

I highly recommend Peter's book here:

http://oreilly.com/catalog/9780596559601/

Harbs

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 ,
Nov 29, 2010 Nov 29, 2010

Copy link to clipboard

Copied

Hi Harbs,

Thanks for your details. I already have this book. Good to start, but not a complete solution. I want someone teach me to do a simple javascript program.Then I will grow myself.

karthi

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 ,
Nov 29, 2010 Nov 29, 2010

Copy link to clipboard

Copied

LATEST

Hi Kasyan,

If i hurt you, sorry....

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