Hazel challenge

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

Moderator: Mr_Noodle

Hazel challenge Sat Apr 18, 2020 1:06 am • by omc69
All,

I need some help with Hazel config. I will move a thousand of files manually sorting things out. However If I manually move a file with an WAV extension to folder where the same filename with AIFF extension exists the AIFF should be deleted and the WAV file should be stay in. AND ! If I move an AIFF to folder where the WAV exists nothing should happen, if the WAV file is already there. Otherwise the AIFF should stay in.

Any idea ?

Thanks
Christian
omc69
 
Posts: 2
Joined: Sat Apr 18, 2020 12:59 am

Re: Hazel challenge Mon Apr 20, 2020 9:46 am • by Mr_Noodle
That might be a bit difficult. You will probably need to use nested conditions (look them up in the manual). You can specify a set of conditions using "any file in the same folder". Something like the following:
Code: Select all
If (all) are met
   Name matches (• file name)
   Extension is (wav)
   If (all) are met for (any file in the same folder)
      Name matches (• file name)
      Extension is (aiff)
      ...

where (• file name) is a custom text attribute with a pattern of "anything". What this does is match a wav file if there's a aiff file with the same name in the same folder. You will then need to add conditions using something like Date added to figure out which came first, which I'm not sure is doable but you'll have to experiment.

I'd make sure to try this on a set of test files before using it on the real thing.
Mr_Noodle
Site Admin
 
Posts: 11870
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel challenge Mon Apr 20, 2020 2:51 pm • by omc69
Thanks a lot !

Christian
omc69
 
Posts: 2
Joined: Sat Apr 18, 2020 12:59 am


Return to Support