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

script to detect overset text in indesign 2020

Return to Member Forum

  • Author
    Posts
    • #1219692
      Year 1917
      Member

      hi

      does someone know of a script that tells you which pages have overset text in them so you can fix them?

      thanks

      P.S. there is some floating around online but they don’t seem to work in indesign 2020

    • #14323382
      David Blatner
      Keymaster

      No script necessary! Check out the Preflight panel:
      https://indesignsecrets.com/tip-week-finding-overset-text-preflight.php

    • #14323379
      Year 1917
      Member

      thanks david!

      i still would like a script that would just list on which pages there is overset text (as my document has a lot of errors (hebrew typesetting))

      thanks

    • #14323377
      Brian Pifer
      Participant

      Agree it’s probably easier to use to preflight as you can navigate to the textframe in question through the panel, but here you go.

      var tfs = app.documents[0].textFrames;
      var oversetPageNums = [];

      for (var i = 0; i < tfs.length; i++) {
      if (tfs[i].overflows) {
      oversetPageNums.push(tfs[i].parentPage.name);
      }
      }

      alert(oversetPageNums);

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
Forum Ads