Is there a script that I can use in Illustrator to batch rename all sub-layers? I would also like to be able to add sequential numbers to each layer too. I saw an older post that contained a script to do this but it seemed outdated and doesn't work on CS6. Here it is for reference, maybe someone can modify it to work for CS6?
////START SCRIPT////
docRef=app.activeDocument;
topLayers=docRef.layers;
for(i=0;i<topLayers.length;i++){
var currLayer=topLayers[i];
var newNum=i+1;
currLayer.name="Layer "+newNum;
subLayers=topLayers[i].layers;
for(j=0;j<subLayers.length;j++){
var currSubLayer=subLayers[j];
var newSubNum=j+1;
currSubLayer.name="Layer "+ newNum+"."+newSubNum;
subSubLayers=subLayers[j].layers;
for(k=0;k<subSubLayers.length;k++){
var currSubSubLayer=subSubLayers[k];
var newSubSubNum=k+1;
currSubSubLayer.name="Layer "+ newNum+"."+newSubNum+"."+newSubSubNum;
}
}
}
////END SCRIPT////