2 Replies Latest reply on Feb 25, 2015 11:51 AM by photoretouchpro

    How can I get my Indesign script to apply to all pages in the document?

    photoretouchpro Level 1

      My script (java) shown below will only apply to the first page of the document. How can i get it to apply to all pages of my document? What am I missing? Thanks.

       

      scirpt:

       

      myDocument = app.activeDocument

      with (myDocument.pages.item(0).marginPreferences){

      columnCount = 1;

      //columnGutter can be a number or a measurement string.

      columnGutter = "0";

      bottom = "0"

      //When document.documentPreferences.facingPages == true,

      //"left" means inside; "right" means outside.

      left = "0"

      right = "0"

      top = "0"

      inside = "0"

      }