I have a pasted image frame in a text frame in a document and I would now like to duplicate that image frame inside the text frame. I can reach the image frame with myDocument.pageItems.pageItems; but when i duplicate it, it ends up some where else on the page.
Is it possible to duplicate it, hopefully without having the document visible?
I found the answer myself.
I had to refer to the paragraph, and since I know that there will allways be only one paragrah it's not a problem. Then I chose from this list: