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

Re: Re: How can Find minimum chars at the End of Paragraphs

$
0
0

Hi Vetha,

 

By combine Chinna and hasvi script, your requirement is completed.

 

Even though I create a script for your better output.

 

As you are beginner, so I use alert in the provided script.

 

Coding is below:

 

var myParas = app.activeDocument.stories.everyItem().paragraphs.everyItem().getElements();
alert(myParas.length)

for(i=0; i<myParas.length; i++)
{    if(myParas[i].lines[-1].characters.length<5)    {        if(String(myParas[i].lines[-1].contents).match(/^\r/) != null)        {            continue;            }        app.select(myParas[i].lines[-1]);        alert(myParas[i].lines[-1].contents)        }    }

 

Regards

Siraj


Viewing all articles
Browse latest Browse all 92406

Trending Articles



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