Set Specific Time daily to move videos to a different folder

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hi, I've been using the basics of Hazel with amazing results (I don't know how to write code so it's so helpful!). I've stumbled into something that I can't figure out why what seems to be a simple rule doesn't work and wondering if anybody can help.

I have a folder (FOLDER A) with about 1000 videos + text files in it that has files added & subtracted from it at various times during the day, every day. What I want to do:

At 12:30am every day move all the videos to a different folder.
(NOTE: this other separate folder has a Hazel rule with Shell Script that processes them and updates their filenames from a database then sends them back to FOLDER A within a minute or two so I also want to avoid it looping the files endlessly)

To me, it would make sense to create the rule something like this:
_________________
If ALL of the following conditions are met:
KIND is MOVIE
CURRENT TIME is 12:05am ANY DAY

Do the following:
MOVE to folder: PROCESS
_______________

BUT 'RULE PREVIEW' (and testing for real) shows that the 'CURRENT TIME' file attribute does not match.
Screen Capture Image LOCATED HERE: https://db.tt/ip2j8BnyRj

So I tried:
_________________
If ALL of the following conditions are met
KIND is MOVIE
CURRENT TIME is AFTER 12:04am ANY DAY
CURRENT TIME is BEFORE 12:06am ANY DAY

Do the following:
MOVE to folder: PROCESS
_______________

No luck either. So after tinkering I realized the only thing that would work with 'CURRENT TIME' is if I selected 'NONE' in the statement:
'If NONE of the following conditions are met'

So I'm just not sure how to set this up. I couldn't find 'CURRENT TIME' in the Rule Reference Manual with the other File attributes and there's not much written about how it works anywhere else (that I could find). Any ideas would be very appreciated.
twistlick
 
Posts: 6
Joined: Mon Aug 29, 2016 10:53 pm

Are you previewing it at 12:05? If not then the current time won't match since the current time isn't 12:05 (though more accurately, 12:05-12:10 as Hazel provides some fudge).
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Are you previewing it at 12:05? If not then the current time won't match since the current time isn't 12:05 (though more accurately, 12:05-12:10 as Hazel provides some fudge).



I was actually testing during the day so for example at around 1pm I would set up the CURRENT TIME rule for 1:10pm (to give some breathing room), then I'd make sure it was checked in Hazel and would wait & watch and no luck. This was the set of rules that I thought would work
___________________
If ALL of the following conditions are met:
KIND is MOVIE
CURRENT TIME is 1:10pm ANY DAY

Do the following:
MOVE to folder: PROCESS
__________________

So if everyday at 1:10pm I wanted Hazel to move all videos from this folder into the 'PROCESS' folder would this in theory be the correct way to set up the rules? I'm just not sure if my understanding of how the 'CURRENT TIME' rule works is correct. The way I interpret it's use in this case: at 1:10pm every day all videos will be moved to the PROCESS folder.
twistlick
 
Posts: 6
Joined: Mon Aug 29, 2016 10:53 pm

Yes, that is correct. If you still have problems with it, post the results of the diagnostics listed here: https://www.noodlesoft.com/kb/hazel-tro ... ing-guide/
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support