Page 1 of 1

how to use "treat as path" for different destination folders

PostPosted: Fri Jun 28, 2024 8:24 am
by roberting
Hello,

I have the task of sorting files from a drop folder (download) to specific destination folders (which are NOT children of the same root folder).

right now I use a token to identify keywords (company names) based on a csv-file that contains these keywords plus a column with the desired file path in the form: "/User/robert/documents/.../.../...".

so I use the function "sort into subfolder" with a token reading the appropriate column (with the path) and checked "treat as file path" (Unix: "/").

however, the file is not moved anywhere, although the conditions match.

Re: how to use "treat as path" for different destination fol

PostPosted: Fri Jun 28, 2024 8:37 am
by Mr_Noodle
Can you go through the troubleshooting guide here? https://www.noodlesoft.com/kb/hazel-tro ... ing-guide/

Report back with the results.

Re: how to use "treat as path" for different destination fol

PostPosted: Fri Jun 28, 2024 11:40 am
by roberting
ok, i checked the logs and saw that my second rule (the one that should move the file) was not processed. added "continue matching rules". Now this works.

However, the rule now creates a new folder tree in the place the file sat, instead of moving it to place indicated by the path.
Shouldn't "Users/robert/..." point rule to move/copy the file to the path location?

is "sort into subfolder" appropriate for this? I tried "move" and "copy", but they seem to not accept path variables, only fixed folders.

Or, what I suspect now: is it possible at all to move/copy a file to a target folder outside the branch of the monitored folder? (without using other scripts or apps)

Re: how to use "treat as path" for different destination fol

PostPosted: Mon Jul 01, 2024 8:44 am
by Mr_Noodle
Sort into subfolder does just that. It has to be a subfolder. You can move to a folder, then sort from there if you want it outside the source folder.