Find insertionPoints[-1] and change
HI Forum,
I'm using this to find only the lowercase character starting in bullets list.
And to check the previous line last character for semicolon; if not change it to semicolon.
eg.
• Anchor;
• substitute: // here colon (:) has to be changed to semicolon (;)
• aptitue: // here colon (:) has to be changed to semicolon (;)
• Rltitute: // not here....
• Residue.
now, if the character after bullet start with lowercase, the previous character has to be semicolon
myDoc = app.activeDocument;
app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = "^[[:lower:]]";
app.findGrepPreferences.bulletsAndNumberingListType = ListType.BULLET_LIST;
mFound = myDoc.findGrep(true);
l = mFound.length;
while (l--) {
F = mFound
while (F--) {
if(mFound
{
mFound
}
alert ("colon change to semicolon);
// }
}
}
but mFound
Many thanks for the support on this...
