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.
Could anyone please help me for the group library assets.
Thanks in advance
Beginner