Page 1 of 1

Move a file to a folder whose name is a contain match

PostPosted: Wed Nov 21, 2018 10:58 pm
by mevans
I want to file my bills in a folder that is prefixed with the year. For example, move my electric bill to a folder "2018 electric bill". I can only see how to move a file to a folder name that is a constant literal string. I'd like to use a "contains match" in the "to folder" of the Move action. Can I do that? Or is there another way to achieve this dynamic folder name move? (I suppose I could move the file using a script, but that feels like a workaround.)

Re: Move a file to a folder whose name is a contain match

PostPosted: Fri Nov 23, 2018 1:10 pm
by Mr_Noodle
"Sort into subfolder" takes a pattern, so you should be able to prepend the year to it. I'm not quite sure where you are running into problems with this. Can you elaborate?

Re: Move a file to a folder whose name is a contain match

PostPosted: Sun Nov 25, 2018 11:46 am
by mevans
It looks like sort into subfolders will only move files into subfolders of the monitored folder. Does that mean if I monitor Downloads but want to move to ~/Documents/Bills/2018 Electric, that I have to use two rules?

Re: Move a file to a folder whose name is a contain match

PostPosted: Mon Nov 26, 2018 12:55 pm
by Mr_Noodle
You can move the file then sort into subfolder from there.

Re: Move a file to a folder whose name is a contain match

PostPosted: Tue Nov 27, 2018 1:41 am
by mevans
I found this MacSparky article that shows rename, move to folder, move to subfolder all in a single rule.

https://www.macsparky.com/blog/2009/6/3 ... hazel.html