Currently, you can ask Illustrator what layer is selected, but if a user has more than one layer selected, it won't give a list or array of all selected layers. It will still just give you one layer. So many scripts I write have to do with changing properties of multiple layers like batch renaming or batch recolouring. The workaround is to ask the end user to lock all layers they don't want to be affected. It would be much more natural for them to just select the layers they want to be affected.
When this feature going to be available?
I have the attached script that would automate this for us but I can't use it since the layers location seems to be read only? please note you need to rename it to .py to run the script.
IT technician - SCHAWK Manchester