Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

How can I replace ParagraphStyle

$
0
0

Hi All,

 

I need to one of the paragraph style remove and replace another paragraph style. See below coding. Please advice.

 

 

var mydoc = app.activeDocument;


var mypstyle = mydoc.paragraphStyles.everyItem().getElements();


for (i=0; i<mypstyle.length; i++)
{    if (mypstyle[i].name == "Text")    {        mypstyle[i].name = remove({replacingWith: "Paragraph Style 3"});     }
 }




alert("Done")   
aler


art("Done")    alert("Done")   

 

Regards,

Muralidharan.j


Viewing all articles
Browse latest Browse all 15932


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>