Page 1 of 1

Hazel thinks files are folders

PostPosted: Tue Jan 22, 2019 12:25 am
by StephenN
I realised today that a bunch of documents hadn't been filed when they should have been (i.e. rules previously worked).

When I dug in I found that Hazel thinks that the documents are folders. They're really PDF files. They have these permissions in Terminal:

Code: Select all
-rw-r--r--@


Info in the Finder says the same thing.

If I preview my rules with an additional "Kind is Folder" rule, that's the only rule that matches. None of the content rules match, presumably because Hazel thinks they're folders.

The documents all live in Dropbox (and always have).

Any ideas what the problem is?

Re: Hazel thinks files are folders

PostPosted: Tue Jan 22, 2019 11:42 am
by Mr_Noodle
Check the "Kind" in Hazel's preview or rule status UI and post back what you find.

Re: Hazel thinks files are folders

PostPosted: Tue Jan 22, 2019 6:34 pm
by StephenN
Hazel reports it's a folder, see the image linked below. Preview opens it fine.

https://www.dropbox.com/s/erqeppkli89uqrk/Screen%20Shot%202019-01-23%20at%209.30.19%20am.png?dl=0

Re: Hazel thinks files are folders

PostPosted: Wed Jan 23, 2019 12:20 pm
by Mr_Noodle
Are you comfortable with Terminal? If so, can you do 'mdls' on the file and post the output? My guess is something is wrong with Spotlight.

Re: Hazel thinks files are folders

PostPosted: Wed Jan 23, 2019 3:31 pm
by StephenN
Huh, I guess that's it. I'll reindex spotlight and report back.

Later: After reindexing it's the same - kMDItemKind is still "Folder".

Code: Select all
kMDItemContentCreationDate         = 2019-01-22 03:36:45 +0000
kMDItemContentCreationDate_Ranking = 2019-01-22 00:00:00 +0000
kMDItemContentModificationDate     = 2019-01-22 03:36:45 +0000
kMDItemContentType                 = "public.folder"
kMDItemContentTypeTree             = (
    "public.item",
    "public.folder",
    "public.directory"
)
kMDItemDateAdded                   = 2019-01-22 03:39:43 +0000
kMDItemDateAdded_Ranking           = 2019-01-22 00:00:00 +0000
kMDItemDisplayName                 = "PdfView.pdf"
kMDItemFSContentChangeDate         = 2019-01-22 03:36:45 +0000
kMDItemFSCreationDate              = 2019-01-22 03:36:45 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 0
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "PdfView.pdf"
kMDItemFSNodeCount                 = (null)
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 134971
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2019-01-22 00:00:00 +0000
kMDItemKind                        = "Folder"
kMDItemLastUsedDate                = 2019-01-22 04:19:29 +0000
kMDItemLastUsedDate_Ranking        = 2019-01-22 00:00:00 +0000
kMDItemLogicalSize                 = 134971
kMDItemPhysicalSize                = 135168
kMDItemUseCount                    = 12
kMDItemUsedDates                   = (
    "2019-01-21 13:00:00 +0000"
)
kMDItemUserModifiedDate            = (
    "2019-01-22 04:00:31 +0000",
    "2019-01-22 04:19:38 +0000"
)
kMDItemUserModifiedUserHandle      = (
    501,
    501
)

Re: Hazel thinks files are folders

PostPosted: Thu Jan 24, 2019 1:17 pm
by Mr_Noodle
Can you email a sample file exhibiting this problem in to support?

Re: Hazel thinks files are folders

PostPosted: Sun Jan 27, 2019 1:29 am
by StephenN
Mr_Noodle wrote:Can you email a sample file exhibiting this problem in to support?


Just sent.

Re: Hazel thinks files are folders

PostPosted: Wed Apr 10, 2019 11:36 am
by Michael_T
StephenN wrote:
Mr_Noodle wrote:Can you email a sample file exhibiting this problem in to support?


Just sent.


Did this get resolved. I have the same issues with some pdf's. It doesn't affect all pdf's - just some.

Re: Hazel thinks files are folders

PostPosted: Thu Apr 11, 2019 10:20 am
by Mr_Noodle
This was a little while back and I can't seem to find any emails on it but my guess is that it's Spotlight related.