Batch rename top layer in many PSD files
Hi,
I am looking for a way to batch rename the top layer in many PSD files to say "First"
I have 100s of PSD files and I have to rename top layer on all those files to "First", how can I achieve it?
Hi,
I am looking for a way to batch rename the top layer in many PSD files to say "First"
I have 100s of PSD files and I have to rename top layer on all those files to "First", how can I achieve it?
The simplest way is generic:
activeDocument.layers[0].name = "First";
However, if you don't wish to affect existing layer visibility, then another generic approach is:
if (activeDocument.layers[0].visible === false) {
activeDocument.layers[0].name = "First";
activeDocument.layers[0].visible = false;
} else {
activeDocument.layers[0].name = "First";
}
Further checks could be implemented to only affect certain specific layer kinds.
You can then record the script into an action, then use Automate > Batch to apply the action to multiple files.
Of course, a batch script could also be created.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.