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

need help on this code

Guest
Jan 21, 2021 Jan 21, 2021

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;
}

TOPICS
Scripting

Views

153

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

Advocate , Jan 28, 2021 Jan 28, 2021

Votes

Translate

Translate
Advocate ,
Jan 28, 2021 Jan 28, 2021

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