Page 1 of 1

Hazel challenge

PostPosted: 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

Re: Hazel challenge

PostPosted: 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.

Re: Hazel challenge

PostPosted: Mon Apr 20, 2020 2:51 pm
by omc69
Thanks a lot !

Christian