Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Place assets only on First page

$
0
0

Hi Forum,

 

I m wondering, if can i place my Library assets.item(0) only on first page.

 

Because the below script places the Library assets, when i click a particular page...

 

Instead, when i run the script, the assets should be placed only on the first page..

 

Is it possible... I tried this way.. but doesnt works...

 

pg = app.activeDocument.pages.item(0);

//myrect = pg.rectangles.add(); (i tested with adding rectangles on the first page, it works)

var Lib = app.libraries[0].assets[0].placeAsset[pg][0];

 

thanks for the help forum...

Shil..


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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