Acting on a Folder Based on its Contents

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

Moderator: Mr_Noodle

Acting on a Folder Based on its Contents Thu Aug 30, 2007 1:53 pm • by Peeja
I'm using the Ethan's Kinkless desktop system and playing with the rules a bit. I'd like to label my Inbox red if anything inside has been labeled red. Is there any way to do this?
Peeja
 
Posts: 7
Joined: Thu May 31, 2007 4:34 pm

Thu Aug 30, 2007 3:24 pm • by Mr_Noodle
There's not a direct way to do this now. I am looking into some sort of way to specify things that operate on the parent folder.

Until then, the best thing to do would be a script. If you need any assistance on this, go ahead and post here. I know there are at least a couple other script people lurking around here besides me.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Fri Aug 31, 2007 11:48 pm • by IDontDoWindows
I whipped something up

Code: Select all
my hazelProcessFile(leFiche)

on hazelProcessFile(leFiche)
   
   tell application "Finder"
      try
         activate
         set label index of container of (leFiche as alias) to 3
         
      on error errMsg number errNum
         display dialog "Oops" & return & errNum & return & errMsg
      end try
   end tell
   
end hazelProcessFile
IDontDoWindows
 
Posts: 57
Joined: Sun Jan 07, 2007 5:43 am

Tue Sep 04, 2007 12:29 pm • by Peeja
Thanks, IDontDoWindows!
Peeja
 
Posts: 7
Joined: Thu May 31, 2007 4:34 pm


Return to Support