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

How to place an asset from the library to all pages via JavaScript?

$
0
0

Hello, I'm newbie in scripting that's why I need a help from one who knows. I need a javascript to place an asset from the library to all pages of my document.

I've tried to do it but all i have :

 

var myLibPath = (File("C:/Library.indl"));

var myLib = app.open(myLibPath);

var libItem = app.libraries[0].assets[0].placeAsset(app.documents[0]);

 

this places asset to the selected page only, may be someone can tell me how can it works for all pages.

 

Thanks!


Viewing all articles
Browse latest Browse all 15932

Trending Articles