I mean, if I have one frame that I brought to the front, and one that I sent to the back, can I create an item that is between the two? Right now everything I create is automatically on top, and I have to do some scripting to figure out where the other items are at, and then step the new item back, back, back, etc. until I get to where I want, testing at every step to see if it's gone too far.
I can't find a property I can set to move a page item directly to the place in the front-to-back order that I want.
Am I missing something?
Z-ordering is not maintained in scripting properties, but you can use methods. Let's assume topframe and newframe. You can then use newframe.sendToBack(topframe);. Note that this is distinct from newframe.sendToBack(), which sends it all the way back. Check the docs, there are also some requirements for co-parantage between topframe and newframe.