Copy link to clipboard
Copied
var doc = app.activeDocument;
var myPstyle = doc.paragraphStyles.itemByName("OS1", "S1", "S2")
styleUpdate(myPstyle)
function styleUpdate(myPstyle){
myPstyle.keepAllLinesTogether = true
myPstyle.keepLinesTogether = false;
myPstyle.keepFirstLines = 2;
myPstyle.keepLastLines = 2;
myPstyle.keepWithNext = 2;
myPstyle.startParagraph = StartParagraph.ANYWHERE;
myPstyle.hyphenation= false;
}
This query has been resolved here --- > https://community.adobe.com/t5/indesign/is-this-code-correct/m-p/11788724?page=1#M412103
Sunil
Copy link to clipboard
Copied
This query has been resolved here --- > https://community.adobe.com/t5/indesign/is-this-code-correct/m-p/11788724?page=1#M412103
Sunil