Skip to main content
BEGINNER_X
Legend
December 20, 2012
Question

Copy all art and place in new document

  • December 20, 2012
  • 1 reply
  • 499 views

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.parent.constructor.name);

  

   app.select(myGraphics.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

This topic has been closed for replies.

1 reply

BEGINNER_X
Legend
December 20, 2012

Hi ALL,

Any update on above mentioned query.

Thanks in advance

BEGINNER