how to add certain script

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
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