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

Re: Total count of characters

$
0
0

Hi csm_phil,

 

please reject my previous post.. sorry for have made confusion...

 

finally i came to conclusion.... I m trying to get pageno, where the magenta copy colour is present... (assume the no. of document pages is 50.)

 

var mydoc = app.activeDocument;

var txts=mydoc.stories.everyItem().paragraphs.everyItem().characters.ever yItem().getElements();

var TotalCount = new Array;

for (i=0; i<txts.length; i++)

    txt = txts[i];

     if (txt.fillColor.name == "Magenta copy"){

         TotalCount.push(txts.parentTextFrames.parentPage.name) //something like this.... here I do something wrong...

             alert(TotalCount);

}

 

thanks,,, for your help csm_phil.....

 

shil...


Viewing all articles
Browse latest Browse all 72601


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