Page 1 of 1
process folder with name matching current date?

Posted:
Fri May 06, 2016 2:17 pm
by manning
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
Re: process folder with name matching current date?

Posted:
Fri May 06, 2016 4:51 pm
by Mr_Noodle
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".
Re: process folder with name matching current date?

Posted:
Fri May 06, 2016 5:49 pm
by manning
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
Re: process folder with name matching current date?

Posted:
Mon May 09, 2016 10:31 am
by Mr_Noodle
Check the help menu or click on any of the ? buttons in the interface.