How to set an "expiration" date for a file/folder

Hi, I'd like to be able to have a date on a file or a folder name, which is then evaluated by Hazel and if that date is today or later, to move it to the trash. Do you have any ideas how that could be achieved?
This "[del 2013-08-30]" would be matched and if it is today or later, move Folder B to the trash. I can match the date using the tokens, but I can't use the token in the "current time" evaluation.
thanks!
- Code: Select all
Example:
- Folder A
-- Folder B [del 2013-08-30]
This "[del 2013-08-30]" would be matched and if it is today or later, move Folder B to the trash. I can match the date using the tokens, but I can't use the token in the "current time" evaluation.
thanks!