Oh crud!
You are right. There might be situations where layers would have the same name.
How about bones then? Would you not want all the bones (if they have a name) to be unique?
As for the copy/paste script, this is where I have been stopped. I am using a text list to select the bones.
If bones have the same name the whole thing falls apart because I can't use the msg argument like it is done using a menu.
In the original copy/paste script the menu items are dynamically created. So each menu item has a unique
msg property that can be used to identify which bone it represents. This
msg is sent to AS when a menu is selected.
A text list ITEM
has no msg property. Only a label and an ID based on it's position in the list which is constantly changing. Just one msg for the whole thing. So there is no way to keep track of everything without a lot of extra coding... which I just haven't gotten to yet.
The custom bone tool I use has a bug in it which I haven't bothered fixing. I just avoid the situation that causes the bug which is easy for me... but I wouldn't expect everyone to do that.
Plus, the new bone select tool for AS works differently. I use mine for Moho on the Mac. I would need to modify the AS bone select tool to show the bone ID. It might be different and I would have to switch computers to really test it which is a bit of a pain to do at the moment (I spilled coffee on my PC keyboard and I'm waiting for it to dry out.

).
-vern