Fit Frame to Content Multiple Images?
i've got document same tiny image linked thousands of times (check marks within tables), need "fit frame content" them @ once. possible? (indesign cs6 w/ mac)
seems might want this:
var garray = app.activedocument.allgraphics;
var ngraphics = garray.length;
for (var ix = 0; ix < ngraphics; ix++) {
var graphic = garray[ix];
if (graphic.itemlink.isvalid && graphic.itemlink.name == "checkmark.tif") {
graphic.parent.fit(fitoptions.frametocontent);
}
}
cheers,
More discussions in InDesign Scripting
adobe
Comments
Post a Comment