Page 1 of 1

Moving folders that have contents that match a rule?

PostPosted: Mon Mar 21, 2022 4:30 pm
by humata
For fear I'm overthinking this again, is there a de facto method for moving folders that have contents that match a criteria?

An example would be a folder that was created by unzipping an application. The folder might contain an application, documents, a `src` folder, etc. If such a folder, for example, contains an Application kind or .app extension, I would want the entire folder moved into another folder called "macos".

How would you go about doing this yourself?

Re: Moving folders that have contents that match a rule?

PostPosted: Tue Mar 22, 2022 8:10 am
by Mr_Noodle
Look up "nested conditions" in the manual.

Re: Moving folders that have contents that match a rule?

PostPosted: Tue Mar 22, 2022 10:10 am
by humata
Thank you. It appears that the manual to which you refer is found at:
https://www.noodlesoft.com/manual/hazel

It also appears to be available through the menubar: "Help" → "Hazel Help" - however, please note, the Search function in Apple Help does not actually find "nested" if searched:
Image

The information is under "Advanced Topics" → "Using Nested Conditions":
https://www.noodlesoft.com/manual/hazel ... onditions/

It appears, for example, to move any macOS apps and/or folders containing macOS apps, the following rules work:
Image

Another scenario might be since I download Linux ISOs and Windows ISOs (from Microsoft via a virtual machine with a shared Downloads folder with macOS (and usually name them with "win_<DATE>.iso")) somewhat frequently, I want to segregate those. Therefore any Windows apps or isos, the following rules should move them into "Downloads/windows":
Image

And then a catch all following to dump into "Downloads/isos":
Image

(the above screenshots are being soft-truncated by the forum layout if one wonders why the right side is being cut off)

Hopefully this makes sense and is proper...

Re: Moving folders that have contents that match a rule?

PostPosted: Wed Mar 23, 2022 9:23 am
by Mr_Noodle
Thanks for the screens. Looks fine to me. If you run into problems, see the troubleshooting post at the top.