process folder with name matching current date?

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

Moderator: Mr_Noodle

Hi, I have a bunch of folders of the form 160509, 160512, etc that represent dates. I would like, on the day actually represented by the filename, to copy a file out of the relevant folder. Is there some way to ask if the filename matches the current date?
thanks for any help,
//sue
manning
 
Posts: 2
Joined: Fri May 06, 2016 2:03 pm

Search the help for "match pattern". What you want to do is create a custom date attribute to match the date out of the file name. So, if you store it into an attribute named "filename date", you can then use "filename date" on the lefthand side of a condition. That means you can do "filename date is Today".
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thank you, but when you say 'search the help', what do you mean? What help? I don't see any such option in Hazel, sorry to be so dim..............
//sue
manning
 
Posts: 2
Joined: Fri May 06, 2016 2:03 pm

Check the help menu or click on any of the ? buttons in the interface.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support