22 Replies Latest reply on Jul 7, 2017 6:11 AM by Laubender

    Script to add a bookmark to every page

    jimelevens Level 1

      My javascripting has come on a long way recently, creating buttons, adding images etc, but I am totally stumped.

      I have been trying for a while to create a script to add a bookmark to every page within an Indesign document to use in go to destination buttons. I can create these manually, but that is not time efficient when you have to 100+. I haver found script that add to paragraph etc. but not the page. I am totally stumped, I planned to place the add bookmark script within a loop like this:


      var myDoc = app.activeDocument;

      var myDocL = myDoc.pages.length;


      for (i=0; i<myDocL; i++){




      Any help would be greatly appreciated