How to alter filename

Hi all,
I want to file bank/credit card statements automatically. The problem is I always download them the month after they are generated! Hazel detects and moves them to the relevant folder and changes the name to:
Year-Month.pdf ie. 2010-05.pdf
Unfortunately when doing this with Hazel the month is always the date the file is downloaded/created and is always 1 month late and I am having to manually rename. This kind of defeats the purpose.
Is there anyway that I can subtract 1 from the month that hazel inserts? Or if I keep the file with the same complex filename suggested by the bank can I take data from the complex filename and create a simpler one from it (in other words a sort of regex manipulation)?
I hope you can help.
Kev
I want to file bank/credit card statements automatically. The problem is I always download them the month after they are generated! Hazel detects and moves them to the relevant folder and changes the name to:
Year-Month.pdf ie. 2010-05.pdf
Unfortunately when doing this with Hazel the month is always the date the file is downloaded/created and is always 1 month late and I am having to manually rename. This kind of defeats the purpose.
Is there anyway that I can subtract 1 from the month that hazel inserts? Or if I keep the file with the same complex filename suggested by the bank can I take data from the complex filename and create a simpler one from it (in other words a sort of regex manipulation)?
I hope you can help.
Kev