Are there any parameters that you can think of that would cause this script not to function properly?
When I try the script on the provided JET_X_Layers.ai file... it works like a champ - but when I try and use it on a file that I am wanting to separate into top layers... I continually get a script alert saying "1 Top Level Layer(s)", and nothing seems to change in my layer palette.
What OS and version of AI? I just tried it on a file. It takes a couple of steps. First select each master layer in your document and run the Release to Layers (Sequence) from the flyout menu. Then run the script twice. The first time it should tell you the number of atarting layers and the second it will move the layers to the top layer list.
OS X 10.6.7 using CS5.
I tried releasing to layers (sequence), then ran the script like you suggested, and it told me the number of layers, but then when I try and run it again is just tells me that same number and does nothing in the layer palette.
Europe, Middle East and Africa