Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Placing Group Library Assets

$
0
0

Hi All,

 

Facing issues while placing grouped library assets in the active document.

 

No issues while placing assets as a single text frame.

 

Code is below:

 

var myDoc = app.activeDocument;
var myLib = app.libraries[0]; 
app.findTextPreferences = app.changeTextPreferences = null;
app.findTextPreferences.appliedParagraphStyle = "tx" 
var myFound = myDoc.findText() for(k=myFound.length-1; k>-1; k--){    var myAnno = myFound[k].texts[0]    var myPlaceAsset = myLib.assets.item("aaa").placeAsset(myFound[k].insertionPoints[-1])[0];    myAnno.move(LocationOptions.AT_END, myPlaceAsset);              //I think Problem here only    myPlaceAsset.appliedObjectStyle = myDoc.objectStyles.item("bbb")    }

 

 

Please find the screenshot for your more reference.

group_Lib_assets.png

Could anyone please help me for the group library assets.

 

Thanks in advance

Beginner


Viewing all articles
Browse latest Browse all 37788

Trending Articles