Identifying objects in InDesign CS2

I used to script Quark and I had a way that I could name my graphic boxes and text boxes. Now I need to do this in InDesign, but have never scrpted inDesign before.

For instance, on one layer, I have 2 graphic boxes and two text boxes.

I want to do the following:

tell graphic box “ABC” of Layer “Art” to place image (scaling the image to the bounds of the box).
then do the same with graphic box “DEF” of layer “art”

then tell text box “XYZ” to set to string firstString
then ttell text box “UVW” to set contents to string secondString.

Anyone know how to handle this?

For this Quark has a name property and Adobe uses the Label property for the object. Just set the label to the text you would use for a name and refer to the object as you did with Quark.

Ahh… very good.

Thanks.