#target indesign
var tf = app.selection[0];
var anchors = [];
for (var i = 0; i < tf.groups.length; i++) {
anchors.push(tf.groups[i].parent);
};
anchors.sort( function (a, b) { return a.index - b.index } );
anchors.reverse();
for (var i = 0; i < anchors.length; i++) {
anchors[i].insertionPoints[1].contents = '\u00AD';
};