Page 1 of 1

No contents contain match in .json file?

PostPosted: Thu Jul 21, 2022 1:45 pm
by marcia_h
Any suggestions to get Contents contain match to work on a .json file? It seems to be just plain text, TextEdit opens it just fine.

Date Added is after Date Last Matched
Full Name contains config.json
Contents contain match Homebridge

I also tried Contents contain.

It matches if I rename the file and the Full Name rule to config.txt.

Hazel 5.1.

Re: No contents contain match in .json file?

PostPosted: Fri Jul 22, 2022 8:30 am
by Mr_Noodle
You may need to find an app that can open .json files. At least one app that handles json must provide a definition that categorizes the file as a text file.

Also, unrelated but I'd recommend updating to the latest version (5.1.4). The in-app updater may not work so you will have to download and install the update manually.

Re: No contents contain match in .json file?

PostPosted: Sun Jul 24, 2022 12:30 am
by marcia_h
I defined TextEdit as the default application for .json files. It's working now, thank you!

Thanks for the tip on updating manually.