Rename only Audio files with specific length

Bulk Rename Utility How-To's

Rename only Audio files with specific length

Postby abdulrahmanm » Fri Mar 18, 2022 12:05 pm

Hi Guys,

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

Thank you :D
abdulrahmanm
 
Posts: 1
Joined: Fri Mar 18, 2022 12:00 pm

Re: Rename Audio files less than 1-minute

Postby Luuk » Fri Apr 29, 2022 11:53 pm

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.
Luuk
 
Posts: 689
Joined: Fri Feb 21, 2020 10:58 pm


Return to How-To