Copy link to clipboard
Copied
Hi,
Anyone have script for applying keep option in all paragraph styles?
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
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;
}
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?
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
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.........
Copy link to clipboard
Copied
Start by browsing this forum.
I highly recommend Peter's book here:
http://oreilly.com/catalog/9780596559601/
Harbs
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
Copy link to clipboard
Copied
Hi Kasyan,
If i hurt you, sorry....