Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 72601

Re: add tab character before particular paragraph style content

$
0
0

Hi,

 

Another way without GREP ...

 

var doc = app.activeDocument;
var myStories=doc.stories;
var J= myStories.length;

while( J-- ){
    var mStorie = myStories[J];    var K= mStorie.paragraphs.length    while( K-- ){        if  (mStorie.paragraphs[K].appliedParagraphStyle.name == "toto") {            mStorie.paragraphs[K].contents= "\t" + mStorie.paragraphs[K].contents;        }     } 
}

Viewing all articles
Browse latest Browse all 72601

Trending Articles