Placing as an inline object...
hi
i need place inline element, repeating 2 times. can't find why? can 1 give suggestion on this...?
note: highlighted 1 having problem.
"h1box" groupped library element.
"rule" single element, element repeating 2 times.
function placeanchor(style, objname, objstyle){
var mydoc = app.documents[0];
var mylib = app.libraries[0];
app.findtextpreferences = nothingenum.nothing;
app.changetextpreferences = nothingenum.nothing;
app.findtextpreferences = null;
app.findtextpreferences.appliedparagraphstyle = style;
myfind = mydoc.findtext(true);
var mycount=0;
(i=0; i<myfind.length; i++)
{
mytext = mylib.assets.item (objname).placeasset (myfind[i].insertionpoints[0])[0];
mytext.appliedobjectstyle = objstyle;
mycount++;
}
}
placeanchor ("bch_ha", "h1box", "h1");
placeanchor ("bchfa_tt", "bygrule", "rule");
thanks in advance....
More discussions in InDesign Scripting
adobe
Comments
Post a Comment