I want to be able to rename files within a folder based off of elements of the parent folder’s name as well as adding in each file’s CurrentModifiedDate in YYYYMMDDHHMM and a file counter to create a unique identifier code for each file that’ll be extracted and embedded as metadata into the file with another piece of software. The variables in blue and green change depending upon the session, so they need to be referenced from the parent folder. The dashes and underscore are important elements to be included as well.
Currently, I accomplish this by running BRU several times while changing settings in-between runs and manually entering some information. I think it’s possible to truncate this all into one automated script, since my folder naming scheme is consistent, but my head starts spinning when I don’t have code to start with (I understand coding enough to modify existing code, but not enough to create much on my own).
I believe that this would fall under javascripting, since it involves referencing the directory. Please let me know if I should post this on a different part of the forum though. Example to follow:
Example Parent Folder: 2021.05.28_---_APN_788T_USA, Montana, Lewistown_Distant Gunfire, Urban
Original File Names:
Recording001.wav
Recording002.wav
Recording003.wav
Renaming Formula:
Recording001_FileCurrentModifiedDate(YYYYMMDDHHMM)-APN-788T-Counter###.wav
Final Renamed Files:
Recording001_202105280921-APN-788T-001.wav
Recording002_202105281005-APN-788T-002.wav
Recording003_202105282201-APN-788T-003.wav