Hello
The document I’m working on has three layers and on each page, there is one text frame in each of the three layers. I’m writing a script to change the contents of these text frames for the active page.
For the page part, I’m using this code:
mypage = myindesign.ActiveWindow.ActivePage
For selecting and naming each text-frame in its appropriate layer, I thought of using some sort of loop to check for identifying characteristics of these text-frames(such as contents, table row count, etc) or checking the “textframe.itemlayer” property of each text-frame and then writing the entire code in that loop, but it seems like an unnecessarily complicated code.
So, I was thinking if there was a property I don’t know of, that could specify the page AND layer of a text-frame. for example:
mytextframe1 = mypage.layers.item”layer1″.textframes.item(1)
Or something like that.
Thanks