Getting item by string index doesn't work anymore in IDS CS6?
hi all,
previous code had written had code : mydoc.textframes.item("reductionframe");
worked fine!
when running script in ids cs6, object not recognized/found.
if use item(0), works fine. not want loop on textframes/rectangles/etc... , work if else item(i).label == "reductionframe" etc.
also, i've noticed there itembyname() - again - no luck there.
i have filled in scriptlabel each of objects. when checking data browser, can see each object has "label" no name...
what's difference??
so: ideas?
thanks!
greetings,
mario
ok, solved myself.
you need give layer name of object same name script label, fill in object's "name" property in indesignserver.
you can clicking once on layer, pause , click again.
so now: can use mydoc.textframes/rectangles/... .item("yourobjectsname").
hope helps others!
grtz
m.
More discussions in InDesign Server Developers
adobe
Comments
Post a Comment