Batch renaming of Library items - URGENT

Does anyone know how to batch rename items in the Flash 8 library with JSFL (or with an extension)?

I need to change ALL library items at once.

To clarify, I need the script to run on everything in the library to rename them. For example, I’d like it to rename everything in the library “unit2l3” and then add an incremented number on the end, so:
Library items: mycat (bitmap), myfolder (folder), mymovie (movieclip) ……become…. unit2l3_1, unit2l3_2, unit2l3_3. OR EVEN BETTER, if I could just append to the name it already has: mycat (bitmap), myfolder (folder), mymovie (movieclip) ……becomes…. mycat10_2 (bitmap), myfolder10_3 (folder), mymovie10_4 (movieclip)

Does that make sense?

Here’s what I have so far (see below).

Some stuff is commented out in it.
it looks like the last time I used this I changed it just to set the item type to graphic if it was an eps… the commented out part shows how you can automatically link and rename (stripping out spaces, etc)

the first part of the commented out part handles renaming… the second part sets linkage and all the other settings.

var lib = fl.getDocumentDOM().library;
var g=0;
for(i=0;i<lib.items.length;i++){
lib.selectNone();
if(lib.items*.name.indexOf(‘eps’) > 0){
g++;
lib.selectItem(lib.items*.name);
lib.setItemProperty(‘itemType’, ‘graphic’);
lib.updateItem(lib.items*.name);
var tempName = lib.items*.name.replace(/[\s]/g,’_’);
//tempName = tempName.replace(’.eps’,’’);
//lib.renameItem(tempName);
//if (lib.getItemProperty(‘linkageImportForRS’) == true) {
// lib.setItemProperty(‘linkageImportForRS’, false);
//}
//var bubba = “clip”+g;
//lib.setItemProperty(‘linkageExportForAS’, true);
//lib.setItemProperty(‘linkageExportForRS’, false);
//lib.setItemProperty(‘linkageExportInFirstFrame’, true);
//lib.setItemProperty(‘linkageClassName’, ‘’);
//lib.setItemProperty(‘linkageIdentifier’, bubba);

}
}