Reply To: extract text from all anchored frames

Home Page / Forums / General InDesign Topics (CLOSED) / extract text from all anchored frames / Reply To: extract text from all anchored frames

#114109
Peter Kahrel
Member

I have used this script for that:

(function () {
	var stories = app.documents[0].stories;
	var ix;
	for (var i = stories.length-1; i > -1; i--) {
		while (stories[i].textFrames.length > 0) {
			ix = stories[i].textFrames[-1].parent.index;
			stories[i].textFrames[-1].texts[0].move (LocationOptions.AFTER, stories[i].insertionPoints[ix]);
			if (stories[i].textFrames[-1].locked) {
				stories[i].textFrames[-1].locked = false;
			}
			stories[i].textFrames[-1].remove();
		}
	}
}());

This article was last modified on February 3, 2019

Comments (0)

Loading comments...