Create Folders for selected layers

Hi @Dot, sorry for the delay

Did you check out this old post, I think that could really help you -

Maybe this post can help too -

If you still have problems after reading these please let me know and I will help you,
but I will need detailed explanation of what exactly the automation needs to do, step by step.