Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

extract text from all anchored frames

Return to Member Forum

  • Author
    Posts
    • #114077
      Civi Bernath
      Participant

      I have a catalog with thousands of items, and I need to generate a list of item numbers and prices for my client.
      I made a TOC of all item #s and prices, but some of the items are in anchored frames, so they come in to the TOC within the frames. When I copy it to a spreadsheet, all the anchored text is ignored.
      Is there any way to extract all that text?

    • #114109
      Peter Kahrel
      Participant

      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();
      		}
      	}
      }());
      
Viewing 1 reply thread
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads