How to move a layer to the top and move an object to a specific layer?
How do I move a layer to the top and move an object to a specific layer?
For example, I have three layers, and I want the final order from top to bottom to be:
A1
A2
A3.
I’d like to know how to use code to move A1 to the top.
Additionally, I want to move the selected object to A2.

I found this, but I don’t seem to understand it:
https://community.adobe.com/questions-671/script-for-object-styles-being-applied-to-specific-layer-880528
Thank you.



