sub paths to layers
Hi forum!
I am looking for a script which creates layers for each separate selection. The following image should illustrate what I mean:

Imagine you have a lot of such selections and want to have each of them in a single layer so that you can play around with them. I know that this should be possible, as I found a dead link to a script posted 5 years ago in another forum (subpathstolayers.zip).
Can anyone help me? !
