Sorting similarly named files

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Sorting similarly named files Wed Sep 18, 2019 5:26 pm • by mario
Hello,

I'm sorry if this seems simple, but I'm having trouble figuring it out;

I output batches of audio files that have similar names when I export songs for mix. When I'm working on a movie, all files/stems start with the same file name, for example:

SSS_01.01-first_song-woodwinds
SSS_01.01-first_song-brass
SSS_02.01-second_song-woodwinds
SSS_02.01-second_song-brass
etc

The first three characters are the movie title, the next set on numbers is the song number, and the final set of numbers is the revision version. As I output more revisions, my folder fills up with version revisions;

SSS_01.01-first_song-woodwinds
SSS_01.01-first_song-brass
SSS_01.02-first_song-woodwinds
SSS_01.02-first_song-brass
SSS_01.03-first_song-woodwinds
SSS_01.03-first_song-brass
etc

I would like to use Hazel to move previous revisions to a sub folder and leave the current revision in place. Any advice would be greatly appreciated!

Thank you!
mario
 
Posts: 1
Joined: Wed Sep 18, 2019 5:05 pm

Re: Sorting similarly named files Thu Sep 19, 2019 10:33 am • by Mr_Noodle
First off, look up "match patterns" in the help as that is the basic mechanism you are going to use. You would create custom attributes for each of those parts (or at least the revision number).

Now that you have the revision number in a custom attribute, you can use it in a condition. For instance, "(•revision number) is not among the 1 highest" will match any file that doesn't have the highest revision number in that folder. You can then use Sort into subfolder for those files.
Mr_Noodle
Site Admin
 
Posts: 8363
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron