Is it possible to use Javascript to select groups by name and nest them within other groups?
I've been trying to write a javascript to organize groups that runs on a PS file containing dozens of groups.
It needs to scan through to see wether the specific named groups exist and if so select these groups and nest them into another specific named parent group. If the groups don't exist the script should simply move on. I have been able to make bits and peices of this work but I've completely hit a wall.
I can write code to select the groups by name and even sort them to the top of the layers pallette but haven't figured out the method for how to then move and nest these groups into another already existing named group. To make things more complicated these groups all contain layer masks so it's not enough to use javascript to simply generate the groups and their parent children relationships.
Ideally the script will be able to be run once the parent children relationships have been defined otherwise the group nesting all has to be done manually.

