I managed to do some steps with standard commands, but things started to get specific to the point of considering a script, could someone help me with a script?
Step 1- select the first file in the folder, check if there are other files with the same name before the first dot " . " and also select them (for example, if you selected a file called 1.0.mov, it will also select a possible file called 1.2.mov .
Step 2- After that, check if the next file in the folder has a different name before the first point (for example 2.0.mp3 is different from the previously selected 1.0.mp3), and also select files with the same name as it before the first point (2.0 .mp3, 2.1.mp3, 2.1.mp3) and skip them. Now repeat the process from step one to step two, until all files in the folder are checked and correctly selected, and apply a preset rename "preset1"
After that, invert the selection, selecting all the files that are unselected in the folder, and apply sum preset rename "preset2" to it.
In other words, I'm trying to select files with a similar name, skip the next file that has a different name that also has a similar name, then select the next file and the others that have a similar name.
Example:
In a folder with files with the following names 1.0.mp3, 1.1.mp3, 2.0.mp3, 2.1.mp3, 4.0.mp3, 4.1.mp3, 6.0.mp3, 6.1.mp3
Only 1.0.mp3, 1.1.mp3, 4.0.mp3, 4.1.mp3 would be selected and a preset rename applied to them. Then they would be deselected so that 2.0.mp3, 2.1.mp3, 6.0.mp3, 6.1.mp3 were selected and a different preset rename was applied.