klom
1
There is a built-in renaming script and various user scripts to rename from, example
tHiS iS a teSt
into
This Is A Test
But what about only capitalizing the first letter of every word without affecting the following letters? As such:
tHiS iS a teSt
into
THiS IS A TeSt
Thank you
lxp
2
Try
// https://resource.dopus.com/t/renaming-capitalizing-first-letters-without-changing-following-letters/39883
function OnGetNewName(getNewNameData) {
var allWords = getNewNameData.newname.split(' ');
for (var i = 0; i < allWords.length; ++i) {
allWords[i] = allWords[i].substring(0, 1).toUpperCase() + allWords[i].substring(1);
}
return allWords.join(' ');
}
39883.orp (678 Bytes)
https://resource.dopus.com/t/how-to-use-rename-presets-from-this-forum/26726
2 Likes
klom
3
Works like a charm thank you!