-
1. Re: Keep CS5 HTML "lightroom" web gallery template from renaming files...
MarkDas Apr 13, 2011 9:23 AM (in response to MarkDas)I believe I've discovered the file/script that does the renaming. I've done some testing, and have been able to change the way Bridge does the changes, but not able to keep the original file name.
The file is "galleryCreator.jsxinc", found in C:\Program Files\Common Files\Adobe\Bridge CS5 Extensions\Adobe Output Module\mediagallery\resources\scripts.
I'm not a code-guy, so I'm hoping that someone with more smarts than I can help. Below is the part of "galleryCreator.jsxinc" that does the re-naming. Simply deleting this entire part of the script renders Bridge unusable. So allowing the script to create the altername is important. If the alteration could consist of only adding the "underscore" prefix to the original file name, all would be well...
Here's the pertient portion of the script:
AOM.AmgGalleryCreator.createUniqueFileName = function(filePath, jpgFile, createMode)
{
var alteredName;
while (true)
{
alteredName = "_";
for (var i=0; i<10; i++)
{
alteredName += Math.floor(Math.random() * 10);
}
alteredName += ".jpg";
var f = new File(filePath + alteredName);
if (!f.exists)
break;
}
return alteredName;
}I will send a check for $200 to the first person who can rewrite this to simply add the underscore first, then return the original file name instead of the random number generator, and make it work. Anyone?
Message was edited by: MarkDas
