how to add certain script

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

Moderator: Mr_Noodle

how to add certain script 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
Chuggett
 
Posts: 30
Joined: Wed Mar 16, 2011 9:17 pm

Re: how to add certain script 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.
Mr_Noodle
Site Admin
 
Posts: 11280
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support