Page 1 of 1

Rename only Audio files with specific length

PostPosted: Fri Mar 18, 2022 12:05 pm
by abdulrahmanm
Hi Guys,

How to rename in Bulk Rename Utility only the audio files with length less then 1 minuets ?

Thank you :D

Re: Rename Audio files less than 1-minute

PostPosted: Fri Apr 29, 2022 11:53 pm
by Luuk
If the audio extensions are mp3, wav, cda, m4a, flac, then the paid-version could use some javascript like...
if (/mp3|wav|cda|m4a|flac/.test(ext)) {if (filePropertyNum('Length')<60) newName='tiny--' + name}

Another way could be using some Filters(12) settings like...
"Mask"==*mp3 *wav *cda *m4a *flac
"Condition"==filePropertyNum('Length')<60

But "Condition" is only for the paid version, so there is still another way, but its taking much longer.
First to put <(Length)> inside for the menu "Display Options, List, Set Contents of Custom Column".
Then to right-click inside of the file-listing header, to add a checkmark for the "Custom" header.

After all of this, then you can click the "Custom" header twice, to put the shortest-ones on top.
So then, you would just have to be very careful when selecting which files should be renamed.