Page 1 of 1

Hazel Trigger when a file is present

PostPosted: Mon Jul 13, 2020 12:31 pm
by pakiyabhai
Hello,
I use Keyboard Maestro to download bank statements every day at 9AM .

I need to wait Once all the bank statements are downloaded , I currently manually run Hazel to activate the rule which renames the files, moves the file & then KM does more stuff with them.

I'd like to create at automate the process but wait till KM is downloading all statements . KM can either create a text file or a directory.

Image
Image

Re: Hazel Trigger when a file is present

PostPosted: Tue Jul 14, 2020 9:59 am
by Mr_Noodle
How would you know they are all downloaded? Is there a fixed number of files you download or something else?

Re: Hazel Trigger when a file is present

PostPosted: Tue Jul 14, 2020 11:50 am
by pakiyabhai
HI ,
Thanks for the reply.
The trigger file is created by Keyboard Maestro only once all the files are downloaded .

Re: Hazel Trigger when a file is present

PostPosted: Wed Jul 15, 2020 9:57 am
by Mr_Noodle
In that case, you can try adding a condition like:
Code: Select all
If (all) are met
    << your normal conditions to match the files >>
    If (all) are met for (any file in the same folder)
        <<< condition to match the "trigger file" >>>


That will match a file if the trigger file exists in the same folder. You will also need some sort of rule to remove the trigger file.

Re: Hazel Trigger when a file is present

PostPosted: Thu Jul 16, 2020 1:26 am
by pakiyabhai
Thank You !!! It works but the rule trigger window never shows that rule has matched (but it works regardless)

I'm on Catalina 10.15.5

Re: Hazel Trigger when a file is present

PostPosted: Thu Jul 16, 2020 10:09 am
by Mr_Noodle
Can you post a screenshot of the preview showing this? You'll have to use a 3rd party image hosting service. Try imgur.com if you don't have one already.