I've been using XML to translate some layouts to a condensed format. Each record has an associated image, so I have anchored graphic frames and then copied the entire graphic frame or group of frames from the old layout and pasted them into the anchored frames. I'm new to scripting and have so far been able to find the scripts I need or the snippets of things that will work, but I'm lost on this one. I need to basically release the container frame so the items are easier to work with. Manually, I would select the content, copy, paste in place select the original container frame and delete it. Does anyone know where I might find something to accomplish that?
I think you can achieve you goal by using anchoredObjectSettings.releaseAnchoredObject().
Unfortunately all that does is remove the link to the text frame. The image container is still there so I have an image in a frame within a container frame.