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

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

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!
martinewski
 
Posts: 30
Joined: Sat Jun 29, 2013 6:41 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11551
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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!
martinewski
 
Posts: 30
Joined: Sat Jun 29, 2013 6:41 pm


Return to Open Discussion

cron