Apologies if this is somewhere on here and I missed it. I have looked for some time now. I am so close to getting my recipe correct but can't figure this part out. My objective is to be able to have a folder that has a sub-folder for each of my clients. Each of those client sub-folders (in theory could have 4 Sub-folders titled (for simplicity sake) Apple, Banana, Coconut, and Peach. I have OS X Tags created for those (apple, banana...etc.).
Assuming I save any document with the client's last name and use one of the above tags into the Folder I have the Hazel Rule working on, here are the rules I used.
Rename with Pattern Name
Sort into Sub-folder with pattern Name
Sort into Sub-folder with pattern Tag
Rename with pattern (date added)(name)(extension)
The end result is that if I save a document as Jones with a Tag of Coconut,
Hazel will:
create a sub-folder Titled Jones...perfect
create a sub-folder within the Jones folder Titled Coconut....perfect
Place my file into the coconut sub-folder with the title 2015-10-02 Jones.pdf ... Perfect
This way if there are no Jones Apple files, then there is no apple sub-folder.
The problem occurs when I now have a new document for Mr. Jones. Let's say it is a Banana so I save it as Jones with the banana tag. What happens is a new Jones-1 sub-folder is created with all the other rules operating effectively.
How do I structure things so that instead of the result above, I would only have one Jones sub-folder that holds a coconut sub-folder (with it's files) and a banana sub-folder (with it's files inside)?
Any help is greatly appreciated.