Page 1 of 1

Application has to be running before Hazel executes rules

PostPosted: Thu Sep 15, 2011 6:29 am
by dorian_grey
Hello,

following situation: I want Hazel to check my download folder.

1. rule: As soon as a file with a certain extension is added, a shellscript (remove the quarantine from the file, so that the annoying popup doesn't show up and it is immediately opened) is run.

2. rule: Open files with a certain extension (same as above) with a certain application.

This only works if the "certain application" is already running, otherwise nothing happens. Hazel recognises the file in question to be matched (with the 1. rule) according to its preview function or the log, however the rule isn't carried out (when opening the file manually the popup appears). The 2. rule isn't applied at all.

What am I doing wrong?

Re: Application has to be running before Hazel executes rule

PostPosted: Thu Sep 15, 2011 10:17 am
by Mr_Noodle
Why are you doing this in 2 rules? Why not just have the first rule do both actions? Only one rule can match a file at a time so the 2nd rule, if it has the same conditions as the first, will never get run.

Re: Application has to be running before Hazel executes rule

PostPosted: Thu Sep 15, 2011 12:15 pm
by dorian_grey
I see. I read that in the help but misunderstood the part about the same conditions.

Working now, thanks!