Page 1 of 1

how to add certain script

PostPosted: Sun Dec 04, 2011 2:54 am
by Chuggett
Hi guys

Im trying to make a script (from bits all over the www) that identifies if a certain file type is present in a directory, and if its not, then perform an action, but i do not know what condition to use in hazel to perform this script.

Is it........ "if ANY file" > Run Applescript

So what i am attempting to do, is if a filetype with the extension .partial is present, do nothing, otherwise if its not present, then color all the files in the directory to green, so that hazel can do further things with these files.

Thanks alot
Chris

Re: how to add certain script

PostPosted: Mon Dec 05, 2011 5:40 pm
by Mr_Noodle
"any file" matches everything which is not what you want.

You can do this with 3.0 (which is in beta; check the beta forums for more details). In 2.0, you'll have to code all this logic yourself, unfortunately.