| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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!
| References: | |
| >Color Labels in Panther (From: Steve <email@hidden>) | |
| >Re: Color Labels in Panther (From: Bill Briggs <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.