activeDocument.layerSets is probably what you are looking for and should be able to get all of them through a for loop using the length property. I know layersets have a name property so you should be able to rename it hopefully. Been a while since I did photoshop scripting.
Replies
I will take a look at that command tonight, thanks Haiddasalami.
http://www.ps-scripts.com/bb/viewtopic.php?f=9&t=3631&p=16417