Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Automatically attach color labels to files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automatically attach color labels to files
Authored by: butaka on May 07, '11 12:37:15AM

My need was to have every file or folder that gets copied to a specific drive be color coded to that drive's color. I named my hard drives after the color (Not required. Just helpful in keeping things organized). I do video editing and knowing which drive a file resides on is very helpful for file management.

I created the following Folder Action script and assigned the script to the drive based on a few different scripts I've seen. My disk name is "YELLOW" (yours is whatever you named it) and the "3" is the number for the yellow label color. (Orange is 1, Red is 2, Yellow is 3, Blue is 4, Purple is 5, Green is 6, and Gray is 7). Keep in mind that I know very little about apple script commands or arguments. So, the only thing I could figure out is how to tell the drive to color code everything on the drive every time an item is copied to it. I would prefer if just the item that I copy to the drive be what gets color coded at that time. But, I couldn't get that to work. So here's what I have:

on adding folder items to this_folder after receiving these_items
tell application "Finder"
set label index of every item of entire contents of disk "YELLOW" to 3
end tell

(47274)

end adding folder items to



[ Reply to This | # ]