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

10.5: Run Spotlight searches based on Finder labels System 10.5
To find files by label with Spotlight, or in the Finder's find box, type label:1 (or any other number up to 7). The numbers don't seem to correspond exactly to the order in the Finder; but you can see them by doing mdls on files. Here's how each number corresponds to one of the Finder's label colors:
  • 0 - None
  • 1 - Gray
  • 2 - Green
  • 3 - Purple
  • 4 - Blue
  • 5 - Yellow
  • 6 - Red
  • 7 - Orange
The actual key name is kMDItemFSLabel in the mdls output.
    •    
  • Currently 2.83 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (6 votes cast)
 
[11,219 views]  

10.5: Run Spotlight searches based on Finder labels | 4 comments | Create New Account
Click here to return to the '10.5: Run Spotlight searches based on Finder labels' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Run Spotlight searches based on Finder labels
Authored by: Deut3221 on Dec 31, '07 01:49:34PM

Nice hint. Thanks.

Question: the first time I ran this search it took FOREVER. Most Spotlight searches in 10.5 are quite fast. Any idea why label search is so slow?



[ Reply to This | # ]
10.5: Run Spotlight searches based on Finder labels
Authored by: RickoKid on Jan 02, '08 11:57:10AM

Because you're sitting there waiting for it?



[ Reply to This | # ]
10.5: Run Spotlight searches based on Finder labels
Authored by: FOOOD on Jan 11, '08 08:40:11AM

Strange that you have to type numbers & can't type label:red, label:green etc.

But you can workaround it & not have to learn the corresponding numbers for colours by using TextExpander.

For example I type ,red & it will change label:6. I type ,green & it will change to label:2 etc...

Makes things a little easier to remember.

>

[ Reply to This | # ]
10.5: Run Spotlight searches based on Finder labels
Authored by: cibi3d on Jan 28, '08 08:50:50AM

Actually, there is an easier (at least, more graphical) way to do it. In a Spotlight window click the 'More' ('+') button. In the fields list click on 'Other' and look for 'File Label' (you may want to mark the 'In Menu' checkbox so it will appear from now on in the main list). This field allow you to use the same colored label buttons as in the Finder Info panel.



[ Reply to This | # ]