1 Reply Latest reply on Dec 20, 2012 8:26 AM by BEGINNER_X

    Copy all art and place in new document

    BEGINNER_X Level 3

      Hi All,

       

       

      Requirement:

       

      I need  graphics (arts) in my active document, copy and paste in another document with their art name.

       

       

      Trying code is:

       

      myDoc=app.activeDocument;

       

      myGraphics=app.activeDocument.allGraphics;

       

      for (k=0;k<myGraphics.length;k++)

       

      {

       

         myDoc=app.documents.item(0);

        

         //alert(myGraphics[k].parent.constructor.name);

        

         app.select(myGraphics[k].parent);  

        

         app.copy();

        

         myDoc1=app.documents.add();

        

         myDoc1=app.documents.item(1);

       

          app.paste();

       

          }

       

       

      Above code just copy and paste the single art only. But i need all arts in my active document and paste in new document with their art naming.

       

      Can anyone give solution for above mentioned query.

       

       

      Thanks in advance

      BEGINNER