Page 1 of 1

macOS Monterey - Library folder contents change not working

PostPosted: Sat Feb 26, 2022 12:58 pm
by united
Hi,

Issue: Backup folder contents not being modified based on rule.

- running Monterey (macOS 12.2.1)
- hazel 5.1.1

I have added
- ~/Library/Application Support/Mobile Sync/Backup to hazel
- added hazel to System Preferences/Privacy/Full Disk access
- checked the status and it shows the rule matching

rule
- any file
then
- set label color to red

observation:
- menulet hazel menu "Run rules > Backup" shows a "red" indicator (previously seen when you don't have access to a folder but doesn't show that in the hazel app interface.

checked the log
- why doesn't hazel of permission to see that file if it has full disk access?

Code: Select all
Received error while processing file /Users/<omitted>/Library/Application Support/MobileSync/Backup: Error Domain=NSCocoaErrorDomain Code=257 "The file “Backup” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///Users/<omitted>/Library/Application%20Support/MobileSync/Backup, NSFilePath=/Users/<omitted>/Library/Application Support/MobileSync/Backup, NSUnderlyingError=0x600000075260 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2022-02-26 09:13:27.803 hazelworker[62075] Done processing folder Backup

Re: macOS Monterey - Library folder contents change not work

PostPosted: Sat Feb 26, 2022 1:31 pm
by united
Ok looks like you had to add hazel to the accessibility option in privacy.

that solved the issue.