Application has to be running before Hazel executes rules

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

Moderator: Mr_Noodle

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?
dorian_grey
 
Posts: 20
Joined: Sun Sep 04, 2011 8:01 am

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

I see. I read that in the help but misunderstood the part about the same conditions.

Working now, thanks!
dorian_grey
 
Posts: 20
Joined: Sun Sep 04, 2011 8:01 am


Return to Support