0 Replies Latest reply on Mar 26, 2013 2:20 AM by hurix@123

    placeAsset

    hurix@123 Level 1

      Hi Forums,

       

      I have a script to get library item and place xml element, but my library item is placing first page itself.

       

      my question is i have to place where the box style is refered from that pages there i have to place library item.

       

      my script is:

          try  {

                                      myAsset = myCurrentLib.assets.item("Box");   // Name of the library item is "Box"

                      myLibraryItem = myAsset.placeAsset(app.documents[0]);

                                                    if(myLibraryItem[0].isValid == true){

       

       

                          myLibraryItem[0].move(["47pt", "76 pt"]);

                                           }

       

                                      }

                  catch (err)   {

                      alert ("There is no library element with the name Box");

                      exit();

                      }

       

      can any one help

       

      hurix