Inline anchor box text remove and text place in the paragraph
Dear Friends,
Now i am doing one project, that project requirement some of the words doing inline anchor box in the runnng paragraph (please see the screen shot). My requirement is remove the anchor box and same anchor box text place in the same place.
I using "Peter Kahrel" script, but its not run the script, its showing error (Please see the screen shot), kindly advice.
---------------------------
(function () {
var stories = app.documents[0].stories.everyItem().getElements();
var ix;
for (var i = stories.length-1; i >= 0; i--) {
while (stories.textFrames.length > 0) {
ix = stories.textFrames[-1].parent.index;
stories.textFrames[-1].texts[0].move (LocationOptions.AFTER, stories.insertionPoints[ix]);
stories.textFrames[-1].locked = false;
stories.textFrames[-1].remove();
}
}
}());
------------------


Thanks
kanagakumar.k
