Mr_Noodle wrote:I think that actually makes it more confusing.
If rule 1 moves the file to root, the file is in another place. Is rule 2 active there to move it to the new location? How about instead of moving it to root, you move it to another folder entirely and have rule 2 set up on that folder?
Have you gone through the troubleshooting guide? (
https://www.noodlesoft.com/kb/hazel-tro ... ing-guide/)
There are multiple use cases here that this workflow accomplishes. To help clarify further, as shared previously rule 1 when files/folders are placed in the root folder rule 1 goes moves the specified files to the root if they are already at the root level it tags them so not to repeatedly be processed. Another rule goes to the subfolder to apply all the rules to subfolder. Rule2 Moves the files to the external drive when the external drive is detected. Rule 2 is doing that moving it to the external drive where a different folder resides.
The greater issue is not the work flow but why the hazel inconsistency in execution and how to alleviate that issue of the rule 1 running consistently. But rule 2 not running sometimes on some files based on whether the drive is connected or not. But it does work as expected if you manually run the rules through the menulet menu when this scenario occurs. Also, works as expected if the drive is connected and then folders/files are added and processed as desired, rule 1 runs then rule 2. Hence the request to trigger the rule through AppleScript.
Yes. I have used the troubleshooting guide: To test it I have added files/folders for it to process both with connected/unconnected drive.
Rule Preview: Shows rule 1 matched when the drive is not connected. Holding off in doing this when the drive is connected assuming it will trigger rule 2 since it might be like running the rules through the menulet and will work.
Rule Status window: show the matched rule seconds after items are added to the root folder.
Check the logs: It seems to match rule 1 never to go to rule 2.
The core issue is.
1 - Why rule 2 doesn't run at times based on when items are added with or without the drive connected.
2 - whey rule 2 doesn't re-run on the file again when the drive is connected on files. Even when adding new files or not adding new files again?
If you move a file out of the folder, it's not longer in the folder to be evaluated, hence why the Continue action is greyed out.
This might be another alternative. you share it's no longer needed. But there are scenarios where having the control to allow it to continue process items in the root folder is needed. This being one. IT seems that the rule 1 can't continue matching rules like rule 2 since the "Continue matching rules" is greyed out. I might recalled where this feature was at the user's discretion in hazel early releases. Allowing it at the user's discretion would be something I feel might resolve this issue.
hope this helps to clarify. Since we have discussed this I feel sufficiently. What might be a solution for hazel to handle this? I've shared my observations and suggestions. Would greatly appreciate a solution for this use case.