Hazel acts too fast on file

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

Moderator: Mr_Noodle

Hazel acts too fast on file Wed May 19, 2010 2:52 pm • by guillermo
Ok so I am having an issue with Hazel that I am trying to solve. I want to tell Hazel when it recognizes a movie file to open it with a special droplet i created (same as opening with a file). The problem is that the movie file is getting compressed so when i am exporting the file it is 0 bytes and it grows until it ultimately ends the compression and is its normal size. It is at this point, when the compression has finished that i would like Hazel to recognize and open the file. It always recognizes it right away though and so i end up opening a 0 byte file. Is there any workaround to this?
guillermo
 
Posts: 4
Joined: Wed May 19, 2010 2:40 pm

Re: Hazel acts too fast on file Thu May 20, 2010 12:15 pm • by Mr_Noodle
Is the droplet running an applescript? If so, it's better to have Hazel trigger it. It appears the droplet is not locking the file so Hazel can't know that it's finished. If you do it all within Hazel, then, except for certain actions like the "Open file" action, it can do things in proper sequence.

Otherwise, is there some way to differentiate between the file before and after the droplet has processed it? If so, try and work that into the rule conditions. Or add logic to the droplet to add something to distinguish it. Like have it set the color label when it's done.

Alternatively, you can put in a pause (via a script) though I don't know how consistently that would work depending on whatever it is that this droplet does.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support