Results from troubleshoot:
"Preview Rule":
As noted there are 2 rules for 2 conditions - empty folder, folder with contents
Both rules correctly show working (Green) or not working (Red) based on the individual folder condition.
Rule Status:
All folders show correct rule application based on condition (Rule 1 'matched' for empty folders, Rule 2 'matched' for folders with contents).
Logs (in Debug mode):
Logs show correct rule application, but 'not executing actions' when the state has changed from contents to empty.
Example of this issue here:
- Code: Select all
2023-08-15 12:21:54.486 hazelworker[84987] DEBUG: To Process [PDFs]: Rule signature matched for rule To Process 1. Not executing actions.
I have a folder labeled 'To Process [PDFs]'. This folder contained several files, so would 'match Rule 2, set color to gray'.
I moved all of the files out of that folder and ran the rules again. As the folder is now empty, it should now 'match Rule 1, set color to X (ie. remove the color tag)'. As the log shows, it correctly matches Rule 1 (empty folder) but then states 'not executing actions'. This is the broken piece.
Below is the log from the most recent "run rules":
All folders are correctly matching rules 1 or 2, but [PDFs] & [Video] should have no color tags, but still do.
2023-08-15 12:34:55.296 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Thread 0x600000a2c480: Run worker for folder: /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads
2023-08-15 12:34:55.343 hazelworker[85145] Running worker (v5.2.2) for folder with identifier: 16777229-71777.
2023-08-15 12:34:55.346 hazelworker[85145] ###Arch: arm64
2023-08-15 12:34:55.346 hazelworker[85145] ###main load address: 0x104bec000
2023-08-15 12:34:55.346 hazelworker[85145] ###Hazel Core load address: 0x104dfc000
2023-08-15 12:34:55.346 hazelworker[85145] ###Noodle load address: 0x1050f4000
2023-08-15 12:34:55.346 hazelworker[85145] ###CK load address: 0x104cf0000
2023-08-15 12:34:55.356 hazelworker[85145] DEBUG: Program is licensed.
2023-08-15 12:34:55.365 hazelworker[85145] DEBUG: Error reading file /Users/TKN/Library/Application Support/Firefox/prefs.js: Error Domain=NSCocoaErrorDomain Code=260 "The file “prefs.js” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/TKN/Library/Application Support/Firefox/prefs.js, NSUnderlyingError=0x60000105a610 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2023-08-15 12:34:55.367 hazelworker[85145] DEBUG: Could not find entry for download in Chrome preference file.
2023-08-15 12:34:55.368 hazelworker[85145] DEBUG: Could not read Mail preferences.
2023-08-15 12:34:55.369 hazelworker[85145] Processing folder Downloads (forced)
2023-08-15 12:34:55.369 hazelworker[85145] DEBUG: Pausing to wait for things to settle down.
2023-08-15 12:34:57.444 hazelworker[85145] DEBUG: Processing directories: (
"/Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads"
)
2023-08-15 12:34:57.448 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Checking events for path /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads, folder Downloads
2023-08-15 12:34:57.450 hazelworker[85145] DEBUG: Received file event: {
date = "2023-08-15 19:34:55 +0000";
path = "<NoodlePathSet: 0x600001e74300>\n /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads : 18446744073709551615\n";
}
2023-08-15 12:34:57.450 hazelworker[85145] DEBUG: About to process directory /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads
2023-08-15 12:34:57.454 hazelworker[85145] To Process [Audio]: Rule To Process 1 matched.
2023-08-15 12:34:57.454 hazelworker[85145] DEBUG: Manual run. Forcing actions to be executed.
2023-08-15 12:34:57.455 hazelworker[85145] Could not read tags file
2023-08-15 12:34:57.456 hazelworker[85145] DEBUG: finderprojects dictionary not found in sidebar preferences.
2023-08-15 12:35:13.564 hazelworker[85145] DEBUG: Rule executed. Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Audio]: 2023-08-15 19:34:57 +0000
2023-08-15 12:35:13.564 hazelworker[85145] DEBUG: Action changed file: To Process [Audio]
2023-08-15 12:35:13.567 hazelworker[85145] To Process [PDFs]: Rule To Process 1 matched.
2023-08-15 12:35:13.568 hazelworker[85145] DEBUG: Manual run. Forcing actions to be executed.
2023-08-15 12:35:13.570 hazelworker[85145] DEBUG: Rule executed. Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [PDFs]: 2023-08-15 19:35:13 +0000
2023-08-15 12:35:13.570 hazelworker[85145] DEBUG: Action changed file: To Process [PDFs]
2023-08-15 12:35:13.571 hazelworker[85145] DEBUG: .DS_Store: File is hidden/invisible. Skipping.
2023-08-15 12:35:13.573 hazelworker[85145] test: Rule To Process 2 matched.
2023-08-15 12:35:13.573 hazelworker[85145] DEBUG: Manual run. Forcing actions to be executed.
2023-08-15 12:35:13.573 hazelworker[85145] DEBUG: Could not find existing tags with color 7. Setting color directly.
2023-08-15 12:35:13.573 hazelworker[85145] DEBUG: Rule executed. Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/test: 2023-08-15 19:35:13 +0000
2023-08-15 12:35:13.574 hazelworker[85145] DEBUG: Action changed file: test
2023-08-15 12:35:13.575 hazelworker[85145] To Process [Video]: Rule To Process 1 matched.
2023-08-15 12:35:13.575 hazelworker[85145] DEBUG: Manual run. Forcing actions to be executed.
2023-08-15 12:35:13.576 hazelworker[85145] DEBUG: Rule executed. Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Video]: 2023-08-15 19:35:13 +0000
2023-08-15 12:35:13.577 hazelworker[85145] DEBUG: Action changed file: To Process [Video]
2023-08-15 12:35:13.578 hazelworker[85145] To Process [Apps]: Rule To Process 2 matched.
2023-08-15 12:35:13.578 hazelworker[85145] DEBUG: Manual run. Forcing actions to be executed.
2023-08-15 12:35:13.578 hazelworker[85145] DEBUG: Could not find existing tags with color 7. Setting color directly.
2023-08-15 12:35:13.578 hazelworker[85145] DEBUG: Rule executed. Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Apps]: 2023-08-15 19:35:13 +0000
2023-08-15 12:35:13.579 hazelworker[85145] DEBUG: Action changed file: To Process [Apps]
2023-08-15 12:35:13.580 hazelworker[85145] To Process [Images]: Rule To Process 2 matched.
2023-08-15 12:35:13.580 hazelworker[85145] DEBUG: Manual run. Forcing actions to be executed.
2023-08-15 12:35:13.580 hazelworker[85145] DEBUG: Could not find existing tags with color 7. Setting color directly.
2023-08-15 12:35:13.580 hazelworker[85145] DEBUG: Rule executed. Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Images]: 2023-08-15 19:35:13 +0000
2023-08-15 12:35:13.580 hazelworker[85145] DEBUG: Action changed file: To Process [Images]
2023-08-15 12:35:13.581 hazelworker[85145] To Process [Docs]: Rule To Process 2 matched.
2023-08-15 12:35:13.581 hazelworker[85145] DEBUG: Manual run. Forcing actions to be executed.
2023-08-15 12:35:13.581 hazelworker[85145] DEBUG: Could not find existing tags with color 7. Setting color directly.
2023-08-15 12:35:13.581 hazelworker[85145] DEBUG: Rule executed. Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Docs]: 2023-08-15 19:35:13 +0000
2023-08-15 12:35:13.582 hazelworker[85145] DEBUG: Action changed file: To Process [Docs]
2023-08-15 12:35:13.583 hazelworker[85145] To Process [eBooks): Rule To Process 2 matched.
2023-08-15 12:35:13.583 hazelworker[85145] DEBUG: Manual run. Forcing actions to be executed.
2023-08-15 12:35:13.583 hazelworker[85145] DEBUG: Could not find existing tags with color 7. Setting color directly.
2023-08-15 12:35:13.584 hazelworker[85145] DEBUG: Rule executed. Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [eBooks): 2023-08-15 19:35:13 +0000
2023-08-15 12:35:13.584 hazelworker[85145] DEBUG: Action changed file: To Process [eBooks)
2023-08-15 12:35:13.584 hazelworker[85145] DEBUG: Writing out DB file for /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads to path: /Users/TKN/Library/Application Support/Hazel/16777229-71777.hazeldb
2023-08-15 12:35:13.585 hazelworker[85145] DEBUG: Directory /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads processed in 16.134962 seconds
2023-08-15 12:35:13.585 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Checking events for path /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads, folder Downloads
2023-08-15 12:35:13.586 hazelworker[85145] DEBUG: Sleeping
2023-08-15 12:35:14.575 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Thread 0x600000a2c480: Received events (
{
date = "2023-08-15 19:35:14 +0000";
path = "/Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Audio]";
shouldDoFullScan = 0;
},
{
date = "2023-08-15 19:35:14 +0000";
path = "/Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [PDFs]";
shouldDoFullScan = 0;
},
{
date = "2023-08-15 19:35:14 +0000";
path = "/Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Video]";
shouldDoFullScan = 0;
}
) for stream at path: /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads
2023-08-15 12:35:14.576 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Thread 0x600000a2c480: Run worker for folder: /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads
2023-08-15 12:35:14.576 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Task already running for folder: /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads
2023-08-15 12:35:15.666 hazelworker[85145] DEBUG: Could not read Mail preferences.
2023-08-15 12:35:15.666 hazelworker[85145] DEBUG: About to process directory /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads
2023-08-15 12:35:15.670 hazelworker[85145] DEBUG: To Process [Audio]: Rule signature matched for rule To Process 1. Not executing actions.
2023-08-15 12:35:15.670 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Audio]: 2023-08-15 19:35:15 +0000
2023-08-15 12:35:15.671 hazelworker[85145] DEBUG: To Process [PDFs]: Rule signature matched for rule To Process 1. Not executing actions.
2023-08-15 12:35:15.671 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [PDFs]: 2023-08-15 19:35:15 +0000
2023-08-15 12:35:15.672 hazelworker[85145] DEBUG: .DS_Store: File is hidden/invisible. Skipping.
2023-08-15 12:35:15.674 hazelworker[85145] DEBUG: test: Rule signature matched for rule To Process 2. Not executing actions.
2023-08-15 12:35:15.674 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/test: 2023-08-15 19:35:15 +0000
2023-08-15 12:35:15.676 hazelworker[85145] DEBUG: To Process [Video]: Rule signature matched for rule To Process 1. Not executing actions.
2023-08-15 12:35:15.676 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Video]: 2023-08-15 19:35:15 +0000
2023-08-15 12:35:15.678 hazelworker[85145] DEBUG: To Process [Apps]: Rule signature matched for rule To Process 2. Not executing actions.
2023-08-15 12:35:15.678 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Apps]: 2023-08-15 19:35:15 +0000
2023-08-15 12:35:15.680 hazelworker[85145] DEBUG: To Process [Images]: Rule signature matched for rule To Process 2. Not executing actions.
2023-08-15 12:35:15.680 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Images]: 2023-08-15 19:35:15 +0000
2023-08-15 12:35:15.681 hazelworker[85145] DEBUG: To Process [Docs]: Rule signature matched for rule To Process 2. Not executing actions.
2023-08-15 12:35:15.681 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Docs]: 2023-08-15 19:35:15 +0000
2023-08-15 12:35:15.683 hazelworker[85145] DEBUG: To Process [eBooks): Rule signature matched for rule To Process 2. Not executing actions.
2023-08-15 12:35:15.683 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [eBooks): 2023-08-15 19:35:15 +0000
2023-08-15 12:35:15.683 hazelworker[85145] DEBUG: Writing out DB file for /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads to path: /Users/TKN/Library/Application Support/Hazel/16777229-71777.hazeldb
2023-08-15 12:35:15.684 hazelworker[85145] DEBUG: Directory /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads processed in 0.017768 seconds
2023-08-15 12:35:15.685 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Checking events for path /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads, folder Downloads
2023-08-15 12:35:15.685 hazelworker[85145] DEBUG: Received file event: {
date = "2023-08-15 19:35:14 +0000";
path = "<NoodlePathSet: 0x600001e64540>\n /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [PDFs] : 0\n /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Audio] : 0\n /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Video] : 0\n";
}
2023-08-15 12:35:15.685 hazelworker[85145] DEBUG: Sleeping
2023-08-15 12:35:17.733 hazelworker[85145] DEBUG: Could not read Mail preferences.
2023-08-15 12:35:17.733 hazelworker[85145] DEBUG: About to process directory /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads
2023-08-15 12:35:17.736 hazelworker[85145] DEBUG: To Process [Audio]: Rule signature matched for rule To Process 1. Not executing actions.
2023-08-15 12:35:17.736 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Audio]: 2023-08-15 19:35:17 +0000
2023-08-15 12:35:17.738 hazelworker[85145] DEBUG: To Process [PDFs]: Rule signature matched for rule To Process 1. Not executing actions.
2023-08-15 12:35:17.738 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [PDFs]: 2023-08-15 19:35:17 +0000
2023-08-15 12:35:17.739 hazelworker[85145] DEBUG: .DS_Store: File is hidden/invisible. Skipping.
2023-08-15 12:35:17.739 hazelworker[85145] DEBUG: Skipped /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/test. File/folder not part of change set/file event.
2023-08-15 12:35:17.740 hazelworker[85145] DEBUG: To Process [Video]: Rule signature matched for rule To Process 1. Not executing actions.
2023-08-15 12:35:17.740 hazelworker[85145] DEBUG: Updating match date for file /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Video]: 2023-08-15 19:35:17 +0000
2023-08-15 12:35:17.741 hazelworker[85145] DEBUG: Skipped /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Apps]. File/folder not part of change set/file event.
2023-08-15 12:35:17.741 hazelworker[85145] DEBUG: Skipped /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Images]. File/folder not part of change set/file event.
2023-08-15 12:35:17.741 hazelworker[85145] DEBUG: Skipped /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [Docs]. File/folder not part of change set/file event.
2023-08-15 12:35:17.742 hazelworker[85145] DEBUG: Skipped /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads/To Process [eBooks). File/folder not part of change set/file event.
2023-08-15 12:35:17.742 hazelworker[85145] DEBUG: Writing out DB file for /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads to path: /Users/TKN/Library/Application Support/Hazel/16777229-71777.hazeldb
2023-08-15 12:35:17.743 hazelworker[85145] DEBUG: Directory /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads processed in 0.010216 seconds
2023-08-15 12:35:17.744 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Checking events for path /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads, folder Downloads
2023-08-15 12:35:17.744 hazelworker[85145] DEBUG: Sending metrics to scheduler. Next scheduled run: 4000-12-31 16:00:00.000
2023-08-15 12:35:17.744 hazelworker[85145] Done processing folder Downloads
2023-08-15 12:35:17.744 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Received metrics for folder /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads: {
directoryDepth = 1;
requestedSchedulingTime = "4001-01-01 00:00:00 +0000";
triggerPaths = "<NoodlePathSet: 0x600001f0af20>\n";
unavailablePaths = "{(\n)}";
}
2023-08-15 12:35:17.745 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Timer scheduled for folder /Users/TKN/Library/Mobile Documents/com~apple~CloudDocs/Downloads at 4001-01-01 00:00:00 +0000
2023-08-15 12:35:17.747 86Z3GCJ4MF.com.noodlesoft.HazelHelper[64128] DEBUG: Thread 0x600000a2c480: Task removed: [85145]