If you drop me your email address, I'll send you the script
That's very kind of you - thanks!
I am having a similar problem.
I have to extract all images to a new layer, without modifying the size of the container.
As long as I am not an expert in scripting I have tried to do a simple code to obtain all links and go to its parent to change its itemlayer property to the new layer. But it is not what I am looking for and it has not work.
The layout of the current layer is based in tables, so images are anchored objects inside table cells, so when I run the simple script I mentioned I also get errors becuase it says the items are grouped. And even if I first run a script to ungroup everything I get the error.
I would appreciate help.
Thanks in advance.