Quantcast
Channel: Adobe Community : All Content - InDesign Scripting
Viewing all articles
Browse latest Browse all 8771

placeAsset

$
0
0

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


Viewing all articles
Browse latest Browse all 8771

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>