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


Click here to return to the 'Yet another way to set Finder color labels via Butler and AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Yet another way to set Finder color labels via Butler and AppleScript
Authored by: octanefilms on Oct 04, '08 07:05:02PM
Combining the Applescript on this MacOsXHints.com page:
http://forums.macosxhints.com/showthread.php?t=57823

with Butler provides the ability to recursively label a group of selected files or just one. Nice!

The following AppleScript code can be pasted into Butler:
-- 0=none, 2=red, 1=orange, 3=yellow, 6=green, 4=blue, 5=purple, 7=grey. Change the number in the 'property file_color' field to match your color needs.

property file_color : 0 --none

tell application "Finder"
activate
set selected to selection
repeat with n_file in every item in selected
set label index of n_file to file_color
end repeat
end tell

or download the Butler container prebuilt here:
http://www.octanefilms.com/butler_finder_labels/Butler_Finder_Labels.zip

Command-Option-L provides a nice pop-up GUI window to choose your label color from a list. Or you can use direct hot keys:
Command-Option-X None Label
Command-Option-1 Red Label
Command-Option-2 Orange Label
Command-Option-3 Yellow Label
Command-Option-4 Green Label
Command-Option-5 Blue Label
Command-Option-6 Purple Label
Command-Option-7 Grey Label

Or you can change the hot keys to suit your needs.

Enjoy.

[ Reply to This | # ]