Page 1 of 1

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

PostPosted: Tue Aug 27, 2013 4:06 pm
by martinewski
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?

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!

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

PostPosted: Wed Aug 28, 2013 3:31 pm
by Mr_Noodle
First off, do not post questions in the Tips forum. The sticky up top tells you not to do this.

I don't think this is doable without a script. Right now, while you can capture the date into a custom token, there's no way to add any conditions using it. It's something on the feature list for a future version though.

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

PostPosted: Wed Aug 28, 2013 3:50 pm
by martinewski
I'm really sorry about that. It is very clear that nothing should be asked here and I did it.

As the answer was clear, if possible, please delete the topic from this forum, as it is in the wrong place.

Thanks!