View Single Post
Old 11-01-2009, 03:58 PM   #3
FanIn80
GOAT!
 
FanIn80's Avatar
 
Join Date: Jun 2006
Exp:
Default

Here's a script for applying a label to a Finder item:

Code:
tell application "Finder"
	set thisItem to selection as alias
	set the label index of thisItem to 2
end tell
Just open up Script Editor and then paste this into an empty script. Save the script in your Scripts folder (~/Library/Scripts).

After that is done, go to http://www.red-sweater.com/fastscripts/ and download and install FastScripts (you don't need to license it unless you plan on making more than 10 shortcuts).

Go into the preferences in FastScripts and switch to the Script Shortcuts tab. Drill down under the /Users... (etc) section until you see the script. Double-click on the shortcut part and assign a keyboard shortcut.

You should now be able to select an item in Finder, hit that keyboard shortcut and then have the item highlight red. Couple that with either Tile View or use QuickLook and you should be fine from there.


Edit: Btw, the color chart is:

Code:
No color = 0
Orange = 1
Red = 2
Yellow = 3
Blue = 4
Purple = 5
Green = 6
Grey = 7
You just have to change the number in the script to the number of the color you want. You can then make seven different scripts with keyboard shortcuts if you wanted to.

Also, there might be better apps for assigning keyboard shortcuts to AppleScripts... I just did a quick Google search to find the one I mentioned here. Actually, I think Snow Leopard has the ability to assign shortcuts to scripts now that I think about it...

Last edited by FanIn80; 11-01-2009 at 04:11 PM.
FanIn80 is offline   Reply With Quote
The Following User Says Thank You to FanIn80 For This Useful Post: