Previous code I had written had code like : myDoc.textFrames.item("reductionFrame");
When running this script in IDS CS6, the object is not recognized/found.
If I use an item(0), it works fine. But I do not want to loop over all my textframes/rectangles/etc... and work with IF Else item(i).label == "reductionframe" etc.
Also, I've noticed that there is a itemByName() but - again - no luck there.
I have filled in the ScriptLabel for each of my objects. So when checking my data browser, I can see that each object has a "label" but no name...
What's the difference??
So: anyone any ideas?
Ok, Solved it myself.
You need to give the layer name of the object the same name as your script label, to fill in the object's "name" property in IndesignServer.
you can do this by clicking once on the layer, pause and click again.
So now: you can use the mydoc.textframes/rectangles/... .item("yourobjectsname").
Hope this helps others!