2 Replies Latest reply on Jul 18, 2015 11:07 PM by Johnwhite

    open docs add layer

    Johnwhite Level 1

      Hi experts

       

      Could some show me how make this script working?

      thanks

       

      Regard

      John

       

              var docs = app.documents;

              for (var i = docs.length-1; i >= 0; i--) {

                      docs.layers.add({name: "pics"});

                      docs.rectangles.everyItem().itermLayer = "pics"

                      }

            alert("Finish.") 

       

      I want add a layer "pics" in all open docs, then move all pics to the layer "pics".