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

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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.)
mevans
 
Posts: 9
Joined: Sat Nov 17, 2018 9:50 pm

"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?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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?
mevans
 
Posts: 9
Joined: Sat Nov 17, 2018 9:50 pm

You can move the file then sort into subfolder from there.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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
mevans
 
Posts: 9
Joined: Sat Nov 17, 2018 9:50 pm


Return to Support

cron