Hello Experts,
I would like to build a macro, but this seems to be over my head.
Goal: “ place all files with the identical first “x” characters to a new folder with that name.”
For Example I get hundreds of these audio files for DX,FX and MX generated by my audio software:
Soundmix_202511_DX51.L.wav
Soundmix_202511_DX51.C.wav
Soundmix_202511_DX51.R.wav
Soundmix_202511_DX51.Ls.wav
Soundmix_202511_DX51.Rs.wav
Soundmix_202511_DX51.LFE.wav
Soundmix_202511_MX51.L.wav
Soundmix_202511_MX51.C.wav
Soundmix_202511_MX51.R.wav
Soundmix_202511_MX51.Ls.wav
Soundmix_202511_MX51.Rs.wav
Soundmix_202511_MX51.LFE.wav
Soundmix_202511_FX51.L.wav
Soundmix_202511_FX51.C.wav
Soundmix_202511_FX51.R.wav
Soundmix_202511_FX51.Ls.wav
Soundmix_202511_FX51.Rs.wav
Soundmix_202511_FX51.LFE.wav
I want to select them all at once and have the macro automatically put them in three new correspondingly named folders:
Soundmix_202511_DX51
Soundmix_202511_MX51
Soundmix_202511_FX51
I found tthis macro by Dan Thomas https://forum.keyboardmaestro.com/t/create-folder-from-filename-move-file-to-new-folder/37482/4 but it seems to only make and name a folder for each file.
But maybe it can be tweaked to do what I’m trying?
I also thought of:
“If names are similar when trimmed 6 places from the end, then place files in new folder with that name”
Any help would be highly appreciated. Thanks..
