try this :
var doc = app.activeDocument;
if (doc.layers.length > 1)
i = doc.layers.length
for(x=1; x <= i; x++)
var calqueSel = doc.layers[i - x];
calqueSelNom = calqueSel.name;
Result = calqueSelNom.split(" ");
if( Result=="natural" && Result == "environment" )
calqueSel.name = "environment_" + Result;
I think if you just added a centered watermark to all your proof imaged you would have no problem. This could easily with a script. Add the texts layer centered over the image. Add a layer style to the text layer that sets the Fill 0 so the text layers pixels will not show. All that will show are the style effects generated for the layer. Here are a couple of watermark layers that have their layer style fill set to 0...
This one with exif information opacity lowered to 35%
Excuse me !
for my error handling!
JJmack, I batch watermark images in Lightroom when needed. If this were a premiere pro or after effects project, this would be SO easy - just edit your watermarked footage and when you're ready to export the final album with no watermark, just REPLACE the "footage"! Problem is that photoshop doesn't reference the images to a file on the computer but rather copies the original image into the PSD file so you can't do that. Yes, you can use datasets but that's getting a little messy.
i will try dominique filiol script and see what happens.
What is in the third index of the array Result?
Also, i = doc.layers.length wouldn't work because not every layer is an image. There are many mask layers and vector layers that I don't need watermarks on. That's why I wanted to run a script based on a mouse click and mouse coordinates. Deep down I feel it's possible because the Album Design 6 software does EVERYTHING via scripting of photoshop so I know a script should be able to be triggered on a mouse click.