Trouble with unarchiving & file types

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

Moderator: Mr_Noodle

Trouble with unarchiving & file types Tue Jun 11, 2024 1:23 pm • by sfritz313
I'm having trouble with Hazel being a little too aggressive in unarchiving files:

I have Hazel set to monitor my Downloads folder and unarchive things that appear to be archives. So far, so good. I have zip files that contain Procreate brush sets (which are, themselves, special types of archive) with the extension .brushset. Unfortunately, Hazel unzips the archives and then tries to unarchive the brushsets, which results in a folder full of broken files that won't work in Procreate. I need Hazel to unarchive the zip but then stop if it encounters a resulting .brushset file. I've added a condition to my "Unarchive Downloads" rule: IF "Extension" IS NOT ".brushset" to continue unarchiving/matching rules as usual. It seems to be ignoring that condition, though- I keep getting folders full of broken brushsets. If I save the brushset zip to the Desktop and double-click it, it unarchives (using my default app BetterZip which I have set to ignore .brushset files). My questions are:

1. Is Hazel using it's own unarchiving software or does it use the system default app for unarchiving?
2. Is there some reason it would ignore conditions that would check the extension after unarchiving the zip files?
3. Am I doing something else wrong?

Posts: 4
Joined: Tue Mar 06, 2007 12:47 pm

Re: Trouble with unarchiving & file types Wed Jun 12, 2024 8:39 am • by Mr_Noodle
Please go through the troubleshooting guide here: ... ing-guide/

Also, can you run the 'mdls' command on the file in Terminal and send me the output? My guess is that Procreate is miscategorizing, or under-categorizing the brushset files. Many file formats are actually zip files but if the program doesn't do anything to distinguish it from a zip file, then Hazel won't be able to tell the difference. For instance, MS Office does this for its files but does add additional categorizations to indicates it is more than a zip file.
Site Admin
Posts: 11320
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Trouble with unarchiving & file types Wed Jun 12, 2024 3:58 pm • by sfritz313
Hey there- running mdls on this brushset gives me this:

_kMDItemDisplayNameWithExtensions = "MORT.brushset"
kMDItemContentCreationDate = 2021-12-07 10:20:32 +0000
kMDItemContentCreationDate_Ranking = 2024-06-12 00:00:00 +0000
kMDItemContentModificationDate = 2021-12-07 10:20:32 +0000
kMDItemContentType = "dyn.ah62d4rv4ge80e6xzsryhg3py"
kMDItemContentTypeTree = (
kMDItemDateAdded = 2024-06-12 19:49:10 +0000
kMDItemDisplayName = "MORT.brushset"
kMDItemDocumentIdentifier = 0
kMDItemFSContentChangeDate = 2021-12-07 10:20:32 +0000
kMDItemFSCreationDate = 2021-12-07 10:20:32 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "MORT.brushset"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 5028638
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2021-12-07 00:00:00 +0000
kMDItemKind = "Prospect Document"
kMDItemLogicalSize = 5028638
kMDItemPhysicalSize = 5029888

...the one thing that makes me pause is the "kMDItemKind = "Prospect Document"" near the end. Prospect is an app that basically lets you QuickLook brushsets:

I wonder if that might be interfering with Hazel somehow? It seems like Hazel should still at least be recognizing the ".brushset" extension and stop the workflow.
Posts: 4
Joined: Tue Mar 06, 2007 12:47 pm

Return to Support