7 Replies Latest reply on Jan 13, 2011 11:26 AM by Haakenlid

    copy a image from active document and place in other document frame?


      I want to just copy a image from current document to a new and place inside a rectangle


      var img =  app.selection[0].graphics[0]

      var myDocument = app.documents.add();

      myRectangle = myDocument.pages.item(0).rectangles.add({geometricBounds:["72pt","72pt", "144pt", "288pt"]});



      Gives me a error



      I can place a file with with:

      var img = File.openDialog("Choose a image File");


      Thats working