by Luuk » Sun Oct 31, 2021 7:44 am
Bru wont look at filenames when conducting a foldername, but the javascript can edit a file's folder-path.
So with the commercial license, the javascript code would probably look something like...
if (/\\\d{8}\\$/.test(object('folder'))) {
newLocation=object('folder').replace(/.{9}$/,name.replace(/\.[^.]*$/,' - ')) + object('folder').replace(/.*(.{9})$/,'$1') }
Its not renaming anything, but when files are inside of 8-digit folders, it moves them into folder-paths like...
C:\Path\24215896\Future Pop.txt =====> C:\Path\Future Pop - 24215896\Future Pop.txt
The Filters(12) should only have checkmarks inside for "Files" and maybe also for "Subfolders".
It does also need a checkmark inside the menu "Renaming Options, File/Folder Extensions, Rename File Extensions".
This because Im not yet know any javascript variables to present only the name, without also having the .extension