5 Replies Latest reply on Jan 11, 2011 11:24 PM by Marijan Tompa [tomaxxi]

    Delete nonprinting items in every page/spread

    tansk02 Level 1

      Hi All,


      See below my code which can selected all nonprinting items on a single spread. As we can't select any items appear on more than one spread in InDesign.


      That is why it is showing error if my spread exceeds more than one. I want to modify this script in a way so that it can delete all nonprinting items appear on more than one spread.


      Can anyone help me on this.


      NonPIt= app.activeDocument.layers.item(0).allPageItems;
      for (a=0; a<NonPIt.length; a++)
      if (NonPIt[a].nonprinting==true)
      alert ("Selected item No. "+ [a]);