Moving folders that have contents that match a rule?

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

Moderator: Mr_Noodle

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?
humata
 
Posts: 4
Joined: Sat Mar 19, 2022 9:52 pm

Look up "nested conditions" in the manual.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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...
humata
 
Posts: 4
Joined: Sat Mar 19, 2022 9:52 pm

Thanks for the screens. Looks fine to me. If you run into problems, see the troubleshooting post at the top.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support