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