Sorry Vam for the confusion...
this is what i mentioned....
for(n=0; n< myResults.length;n++){
var fnd = myResults[n].paragraphs.lastItem().lines.lastItem();
if(fnd.insertionPoints.itemByRange(-3,-2).contents !== "."){ // if there is a paragraph below the bullet paragraph, it works fine... if not it replaces the last character with"."
fnd.insertionPoints.itemByRange(-3,-2).contents = "."
alert(fnd.insertionPoints.itemByRange(-3,-2).contents)
}
}
eg. • vamitul;
• vamitul;
• vamitul; // now the semicolon of the last paragraph will be replaced with "." itemByRange(-3,-2).
Dummy text paragraph of this what when dummy text. (paragraph below the last bullet).
eg2. • vamitul;
• vamitul;
• vamitul;
• vamitul; // if there is no paragraph below... now character "l" is replaced with "." itemByRan(-3,-2) goes to l and change it......
Again sorry if im confusing..... vam..