Copy link to clipboard
Copied
Copy link to clipboard
Copied
var theFolder = Folder.selectDialog("select the folder containing the images to be renamed");
if (theFolder) {
var theFiles = theFolder.getFiles();
for (var m = 0; m < theFiles.length; m++) {
var theName = theFiles.name;
var theLastNumbers = theName.slice( theName.lastIndexOf("_") + 1, -4);
var theRest = theName.slice(0, theName.lastIndexOf("_"));
theFiles.rename(theLastNumbers + "_" + theRest + ".jpg")
}
};
else {
alert ("no selection")
};
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now