Re: Color Labels in Panther
Re: Color Labels in Panther
- Subject: Re: Color Labels in Panther
- From: Bill Briggs <email@hidden>
- Date: Thu, 27 Nov 2003 22:02:32 -0400
At 11:11 AM +1100 28/11/03, Steve wrote:
Want a folder action to color label folders when placed into a
folder. This needs to be a panther script, as other scripts don't
run.
Since everyone in the US is on the couch recovering from overeating,
or too much wine, I'll get you started.
Broken down into simple steps...
on adding folder items to this_folder after receiving added_items
tell application "Finder"
set theItem to folder "test" of folder "DATA" of folder "bill" of
folder "Users" of disk "Data"
set Fs to every folder of this_folder -- in case there are files
tossed in that you don't want labeled
repeat with i from 1 to count of Fs
set the_f to item i of Fs
set label index of the_f to 3 -- use the index that you want for the
right colour
end repeat
end tell
end adding folder items to
Set the label index to suit yourself. Or set it to "i mod 7" to get
different colours on the labels. Fun!
- web
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.