Hello everybody,
I'm currently using the trial version of Hazel and I'm very excited. I will definitely buy it.
But now I have a question about a very complex rule that I can't handle.
A zip file is saved in a folder "Downloads". This file should be unzipped. The process creates a subfolder named "Data_ <month> _ <year>". The file "Rg_XXXXXXXXXX.pdf" is created in this subfolder.
Hazel should rename this file in the subfolder to "RE <month-1>. <Year> .pdf". Month and year can be taken either from the name of the subfolder or the creation date of the PDF file.
Because that's not complicated enough: <month-1> can yield 0. If this happens, then <month> must be 12 and <year-1>.
Finally, the renamed file should then be moved to another folder and the subfolder "Data_<month>_<year>" containing the unpacked file should be deleted.
Is that possible with Hazel? If so, I ask for help how that works. All my attempts lead to no useful result. At the moment I just managed to unzip the zip file.