1 Reply Latest reply on Nov 16, 2015 11:20 PM by K159

    How to copy all object?

    K159 Level 1

      Hi.

       

      I want to copy and paste all of the object.

       

      app.activeDocument.rectangles.everyItem().select();

      app.cut();

       

      I can copy(or cut) and paste only so one type of object.

       

      How to copy all of the objects?

       

      Thanks.

        • 1. Re: How to copy all object?
          Vamitul Level 4

          app.activeDocument.pageItems.everyItem()

          Don't use cut/copy/paste. There are better and faster way of doing stuff in javascript than mimicking what you do in the interface.

          var items=app.activeDocument.pageItems.everyItem().move(newDocument); is equivalent to a cut/paste.