1 Reply Latest reply on Oct 10, 2018 9:09 AM by S Hopkins

    Two-sided card numbering

    gilj55238227 Level 1

      Hi hi

      I have an Indesign file of 800 two sided cards (1600 pages) and I want to add numbers to the cards from both sides.

      Anyone knows how I can add automatic numbering in the following role:

      Pages 1 and 2 will both be numberd #1 , pages 3 and 4 will be numberd #2, and so on.. ??

      Please help it will save me so much work!

        • 1. Re: Two-sided card numbering
          S Hopkins Adobe Community Professional

          Not automatic numbering but this script will do it.

          You could do the same thing with ExtendScript.

          --assumes document with object style Number having assigned paragraph style

          tell application "Adobe InDesign CC 2018"

            set measurement unit of script preferences to points

            set docRef to document 1

            --for facing page document

            set ruler origin of view preferences of docRef to page origin

            set frameStyle to object style "Number" of docRef

          with timeout of 300 seconds

            repeat with i from 1 to 800

            set fPage to page ((i * 2) - 1) of docRef

            set bPage to page (i * 2) of docRef

            my numberPage(fPage, bPage, i, frameStyle)

            end repeat

          end timeout

          end tell

           

          on numberPage(fPage, bPage, i, frameStyle)

            tell application "Adobe InDesign CC 2018"

            tell fPage

            set thisFrame to make text frame with properties {geometric bounds:{36, 100, 96, 200}}

            set contents of thisFrame to ("No. " & i)

            set applied object style of thisFrame to frameStyle

            end tell

            tell bPage

            set thisFrame to make text frame with properties {geometric bounds:{36, 100, 96, 200}}

            set contents of thisFrame to ("No. " & i)

            set applied object style of thisFrame to frameStyle

            end tell

            end tell

          end numberPage