Copy link to clipboard
Copied
Hi,
I made a script that prompts for object style and layer, then moves all objects with selected object style to the selected layer.
Here's a link to .zip archive that contains script and .indd / .idml test files - Dropbox - MoveObjects2Layer.zip
The problem is that sometimes script works just fine, but sometimes it fails: doesn't move all objects and/or move objects with another object style...
Moreover, when it fails - there are totally random results...
Not sure if it's a script or InDesign bug.
Copy link to clipboard
Copied
hi,
A quick look at the code and it looks like you are not handling groups of items, don't know if that is the specific issue you are having, if you group any of the items, then they don't move at all, will continue to investigate but thought I would let you know.
Hope this helps
Malcolm