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

How many pages contain footnotes ? Can it be counted ?

Return to Member Forum

  • Author
    Posts
    • #1231475
      Bart Eenkhoorn
      Participant

      L.S.
      I have a 700+ document and for costing purposes I have to know how many pages have footnotes. Is there a way to automatically count the number of pages that have footnotes ?
      Thanks in advance for your help.
      Bart

    • #12343205
      Vinny –
      Member

      Hi
      Good exercice for practicing scripting.

      Try this script (tested with CS6):
      https://codeshare.io/GkRWrO

      (Note that footnotes on hidden layers are also counted.)

      —–

      Now, my question for scripting gurus:
      I’m struggling with handling overset footnotes.

      Whyyyyyy can I test:
      if (typeof myFootnotes[i].parentTextFrames[0] == “undefined”) {
      //do this
      }

      And NOT include that test as:
      if (myFootnotes[i].parentTextFrames[0].parentPage != null && typeof myFootnotes[i].parentTextFrames[0] != “undefined”) {
      //do that
      }

      This last case returns “undefined is not an object”
      Probably something stupid but I can’t understand why…

Viewing 1 reply thread
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads