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

10.4: Find items by name in the Finder Desktop
Tiger only hintIn the Mac OS X 10.4 Finder, enclosing the search string in double quotes (e.g. "42") will perform the search only on file names, similar to the search in previous versions of Mac OS X.

[robg adds: I'm not sure if this is a bug or a feature, but it definitely works. If it's a feature, then how do you search content for quoted text?]
    •    
  • Currently 2.20 / 5
  You rated: 2 / 5 (5 votes cast)
 
[9,672 views]  

10.4: Find items by name in the Finder | 13 comments | Create New Account
Click here to return to the '10.4: Find items by name in the Finder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Searching for quoted text
Authored by: brycesutherland on May 20, '05 11:07:26AM

Not having a Mac handy at the moment, my first guess would be to escape the quotes, as in \"Foo Bar\".



[ Reply to This | # ]
Searching for quoted text
Authored by: googoo on May 20, '05 11:22:02AM

It works as advertised. I did a Spotlight search with <cmd><space>. When I enclosed the search filed in double quotes (""), it did a filename search. Otherwise it did a content search. I did not have to use a backslash before the double quote characters (although, I suppose that would be necessary for a command line search).

-Mark



[ Reply to This | # ]
Searching for quoted text
Authored by: PeteVerdon on May 22, '05 09:42:53AM

You misunderstand the question. Escaping the quotes was a possible solution for searching for a word that itself contains quotes. Say you have a lot of stories among your documents, and you want to search for someone saying hello, you might search for "hello" _including the quotes_. If using quotes turns it into a filename-only search, then that wouldn't work. To be able to do that you need a way of telling Spotlight that these quotes are not an instruction to do anything special. The standard Unix way of doing that is to precede them with slashes as Bryce suggested, but it's not clear if this works in Spotlight.

Pete



[ Reply to This | # ]
Searching for quoted text
Authored by: turboparrot on May 20, '05 11:26:39AM

Sorry, I don't have any success with this. Maybe it's just a bug.



[ Reply to This | # ]
Searching for quoted text
Authored by: jasont on May 20, '05 11:33:02AM
For me, escaping
 \"<Word_In_Quotes\"
works, but it doesn't return results until the end quote and matches against the first word only. Example, searching for the word foo in "foo bar test" seems to only match for foo and not bar test also using just
 bar test\" 
doesn't match for the end.

[ Reply to This | # ]
Searching for quoted text
Authored by: atshoom on May 20, '05 12:22:17PM

for me it doesn't work as filename contains:
as in other mac os x version.

i typed "doom" in spotlight, and ok i don't have anymore a content search in indexed text files but i get in result a file without the word doom in his filename but with the world doom in its ID3 tag !!!

so doesn't work exactly as advertised.



[ Reply to This | # ]
10.4: Find items by name in the Finder
Authored by: Spartacus on May 20, '05 05:55:08PM

Mea culpa. It seemed to work well when I posted this hint (and I tested it quite a bit), but you are all right, it doesn't.

To make up for it, the next hint I'll post will be a solution to easily find files by name ;-)



[ Reply to This | # ]
10.4: Find items by name in the Finder
Authored by: fud on May 21, '05 01:28:17AM

If I search by my last name in Spotlight I get almost 2000 hits on my Powerbook. If I search with my last name in double quotes, "last", I get 600 hits. It seems to return files with my name in the filename, or my name in the properties [ms office], but not contents.



[ Reply to This | # ]
10.4: Find items by name in the Finder
Authored by: tinb on May 21, '05 04:36:55AM

Great!
Works for me. I have so much waited for this hint - you made my day! Now I type "" first to prevent Spotlight from beginning its search, then fill in the filename. Sometimes a single quote will vanish in the Finder's spotlight field. Strange.

Robert



[ Reply to This | # ]
10.4: Find items by name in the Finder
Authored by: stuntbox on May 21, '05 05:01:52AM

Is there any way to set preferences for the "New Search" dialog that now appears when you hit "Command"+"F"? Specifically, I'd like to call it up preset to do a search by "name contains" only, and do it quickly. I really miss the "old school" searching like in Panther (or any other major OS out there). It's a shame Apple decided to bury this behavior, even though they retained "Command"+"F" for searching.



[ Reply to This | # ]
10.4: Find items by name in the Finder
Authored by: brunolapeyre on May 21, '05 08:39:57PM

Try <expression>



[ Reply to This | # ]
10.4: Find items by name in the Finder
Authored by: siaraX on May 22, '05 01:44:40PM

if you want to find quoted text in the file for example

"marry is drunk"
I did use double quote
""marry is drunk"" and finder fetch only one answer



[ Reply to This | # ]
10.4: Find items by name in the Finder
Authored by: Dunbar on Jun 01, '05 04:55:12PM

As far as I can see using double quotes gives the same result as using no quotes. If you got a single hit for "marry is drunk" it must be because only one file has all three words, though I admit that seems unlikely.



[ Reply to This | # ]