Content in PDF M1/Monterey

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

Moderator: Mr_Noodle

Content in PDF M1/Monterey Mon Nov 15, 2021 5:18 pm • by mwb6
Hello

I've several rules that use "Contents contain" with an account number to read PDF versions of statements and sort them to their appropriate directory. These rules have all stopped working since migrating to a new M1 Mac running Monterey.

I've used the preview function to confirm that the account number is correct and still in the PDF but for some reason Hazel doesn't see it.

To further test, I changed what the contain rule looks for and Hazel doesn't seem to find anything inside of PDFs anymore.

I'm not sure what else to do or if there are configuration changes required to regain this capability.

Thanks for any ideas or pointers.
mwb6
 
Posts: 6
Joined: Thu Aug 16, 2012 7:19 pm

Re: Content in PDF M1/Monterey Tue Nov 16, 2021 10:15 am • by Mr_Noodle
"Contents contain" uses Spotlight. Especially if you just updated to Monterey, chances are your Spotlight index is being rebuilt. To test, search for the text in Spotlight and see if your file shows up in the results or not.

You'll need to either fix your Spotlight index (which may consist of just waiting) or you can use "Contents contain match". The latter does a direct scan of the file. This is more reliable but at the expense of some performance.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Content in PDF M1/Monterey Tue Nov 16, 2021 12:44 pm • by mwb6
Wow ... that was easy! I had looked into Spotlight based on other posts, and I thought I had tried the "Contents contain match" earlier but that was exactly what I needed.

I appreciate your response. Now my rules are back up and running!
:)
mwb6
 
Posts: 6
Joined: Thu Aug 16, 2012 7:19 pm

Re: Content in PDF M1/Monterey Tue Nov 23, 2021 2:20 pm • by sawbones
I am having the same issue: after migrating to a new M1/Monterey Mac, Hazel won't recognize anything in the several PDFs I have tried.

MDS is quiet under Activity Monitor, so after a week I believe it should no longer be reindexing.

If I change one search criterion from 'Contents contain' to 'Contents contain match,' then the same content is found by Hazel. But changing all of my criteria in all of my rules would be quite labor intensive.

Is there something else I can check?

Thank you
sawbones
 
Posts: 21
Joined: Wed Jul 03, 2013 9:29 pm

Re: Content in PDF M1/Monterey Tue Nov 23, 2021 7:53 pm • by sawbones
I am only using my Downloads folder at present for Hazel. I have tried to add it to the 'Privacy' section of Spotlight, and then removing it. I do not see it in the 'Search Results' pane of Spotlight. Is it supposed to be there? How can I add it, or check that it has been indexed?
sawbones
 
Posts: 21
Joined: Wed Jul 03, 2013 9:29 pm

Re: Content in PDF M1/Monterey Wed Nov 24, 2021 9:54 am • by Mr_Noodle
If it isn't showing up in results then there is some sort of Spotlight issue. Is it only Downloads? I'm wondering if there's a privacy issue. Launch System Preferences, go to Security & Privacy and click on the Privacy tab. There, go to Files & Folders. For any Hazel or Hazel-related processes you see there, make sure that you check any folders you want to give Hazel access too.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Content in PDF M1/Monterey Wed Nov 24, 2021 4:40 pm • by sawbones
If it isn't showing up in results then there is some sort of Spotlight issue. Is it only Downloads? I'm wondering if there's a privacy issue. Launch System Preferences, go to Security & Privacy and click on the Privacy tab. There, go to Files & Folders. For any Hazel or Hazel-related processes you see there, make sure that you check any folders you want to give Hazel access too.

Thank you for the quick reply.

I only have Hazel working on my Downloads folder. Would you like me to create a new folder and a new Hazel rule for that folder to test?

When I go to the Files & Folders section, I see Hazel greyed out, with 'Full Disk Access' below it, also greyed out. I cannot edit these entries.

Under 'Full Disk Access,' I have Hazel checked, but there is another entry, '86Z3GCJ4MF.com.noodlesoft.HazelHelper' that is unchecked.

Finally, when I try one of the rules that fails under 'Preview' and doesn't work in real-time, I can change the 'Content contains' to 'Content Contains Match,' and I have to re-enter the specific content, and the Preview field turns to green.

I hope that is helpful.
sawbones
 
Posts: 21
Joined: Wed Jul 03, 2013 9:29 pm

Re: Content in PDF M1/Monterey Fri Nov 26, 2021 11:20 am • by Mr_Noodle
To change the full disk access settings, click the lock in the lower left and enter your password when prompted. Make sure all Hazel processes are checked there.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Content in PDF M1/Monterey Fri Nov 26, 2021 8:38 pm • by sawbones
Mr_Noodle wrote:To change the full disk access settings, click the lock in the lower left and enter your password when prompted. Make sure all Hazel processes are checked there.



Thank you. I had tried this previously, without resolving the issue. I have tried with multiple documents, including ones that had been recognized correctly previously.
sawbones
 
Posts: 21
Joined: Wed Jul 03, 2013 9:29 pm

Re: Content in PDF M1/Monterey Tue Nov 30, 2021 3:30 pm • by sawbones
Bumping this, because all of my actions and filing have come to a dead stop. Is there anything else I can try to find the source of this problem?

Thank you
sawbones
 
Posts: 21
Joined: Wed Jul 03, 2013 9:29 pm

Re: Content in PDF M1/Monterey Tue Nov 30, 2021 3:37 pm • by sawbones
If it helps, I can search for the file of interest in Spotlight, and it shows up. But when I try to preview the same file in Hazel, it doesn't recognize the file unless I use 'Contents Contains Match.'
sawbones
 
Posts: 21
Joined: Wed Jul 03, 2013 9:29 pm

Re: Content in PDF M1/Monterey Wed Dec 01, 2021 10:03 am • by Mr_Noodle
I suspect some Spotlight flakiness here. Until it is resolved, "contain match" is probably your best bet.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Content in PDF M1/Monterey Wed Dec 01, 2021 4:35 pm • by sawbones
Mr_Noodle wrote:I suspect some Spotlight flakiness here. Until it is resolved, "contain match" is probably your best bet.


Thank you. Is there any way I can get my Downloads folder to re-index? I don't even see it in Spotlight.

Also, how much is performance affected by switching recognition modes?
sawbones
 
Posts: 21
Joined: Wed Jul 03, 2013 9:29 pm

Re: Content in PDF M1/Monterey Thu Dec 02, 2021 8:59 am • by Mr_Noodle
There are several methods. Sometimes adding the folder to Spotlight's privacy settings then removing it will trigger it.

Performance will depend on how big the files are and how many of them. If possible, you should precede that condition with other conditions that would reduce the number of files that would reach that point.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Content in PDF M1/Monterey Wed Dec 22, 2021 11:34 am • by gregorymcnamee
I can confirm that this is an error in Monterey. Hazel indexes everything but the Downloads folder, and rebuilding in Spotlight hasn't helped me. My solution, which I don't much like, is a Desktop folder called To File to which I've pointed Safari downloads. The rules I had for sorting files in Downloads work just fine there. Something in Spotlight isn't talking to Hazel, it seems, or vice versa.
gregorymcnamee
 
Posts: 2
Joined: Wed Nov 17, 2021 8:04 pm


Return to Support

cron