I have a problem : (
I would like to place my objects on the first or second page.
But it does not work.
Can someone please help me...
var the_label = app.activeDocument.textFrames.contents;
var the_lib = app.libraries.itemByName("design.indl");
var the_asset = the_lib.assets.itemByName(the_label);
I've never done any Library work, so I could be wrong, but I think you
need to place it in a doc, and then move it to the correct page. (or
you can place it inline in text)
Function "placeAsset" willl accept document or insertionPoint so change your last line as below
Suggestion: Using the InDesign snippet concept that will be placed the Object into the perticular page with the help of place() function.