Page 1 of 1

archiving files not opened in the past 28 days not working

PostPosted: Mon Apr 04, 2016 2:41 pm
by sailingbikeruk
I am not sure if I am going mad or if there is an issue....

I have a rule that says:

Code: Select all
If All of the following conditions are met
Date Last Opened is not in the last 28 days
Archive
Display Notification with pattern <file> Archived
Move to Folder Archived


I thought that this would look at the date and archive it, if it hadn't been opened for 28 days but when a file is put into that folder it is archived within a matter of minutes and moved as a zip file to the archive folder.

Have I done something erroneous?

Re: archiving files not opened in the past 28 days not worki

PostPosted: Mon Apr 04, 2016 2:47 pm
by Mr_Noodle
I suggest checking the date opened as many times it's not what you think it is. In Finder, select the file and do "Get Info" and see what it is there. Also, in Hazel's preview (the "eye" button), select the file and click on its "i" button. Make sure the date last opened is actually what you expect.

Re: archiving files not opened in the past 28 days not worki

PostPosted: Thu Apr 07, 2016 1:56 am
by sailingbikeruk
Mr Noodle,

thank you for this, I did as you suggested.

Its a bit of odd behaviour, in Finder it shows all three dates as being the same (Created, Modified, Opened) but following your suggestions it showed the last opened date was plan whereas the others were not.

Anyway I have it working now with a simple workaround, I just open the file in an app and close the app with a simple applescript immediately, this fills the last opened date and I am able to do the archiving appropriately.

Thanks for you help.

Re: archiving files not opened in the past 28 days not worki

PostPosted: Thu Apr 07, 2016 9:50 am
by Mr_Noodle
It's unfortunate, but in normal Finder windows, some dates are "made up". If they are blank, it will grab one of the other dates which can be very misleading. The "Get Info" panel is really the best place to check on this stuff.