Tag Info

Hot answers tagged

29

Finder -> Preferences -> Advanced


16

Search by Kind One of the most useful ways to narrow down a search is by using the kind: keyword. This allows you to restrict your list of results to a certain file format. For instance, if you type time machine kind:pdf, Spotlight will pull up only PDF files containing the words time and machine. You can also limit your search to e-mail messages, music ...


12

Other than your Finder having jaundice, this should be a simple fix. The following command will clear the volumes local store and rebuild it if necessary; Open up Terminal and type: # sudo mdutil -E / You will be asked for your password, provide it, as this command requires administrator privileges to run. After confirming your Spotlight index will be ...


11

There are a variety of ways of searching for a file by name. I'd just open the Terminal and run locate xxxxxxxx-xxxxxxxx, although the locate index is only updated once a week, so if it's a new file it might not be listed. If you want, you can manually force an update with sudo /usr/libexec/locate.updatedb (you'll need to enter your admin password for the ...


11

Open a finder window Open the folder you wish to search in Click in the search box Type the text you want to find A dropdown should appear like the one in the image below which allows you to select the 'Filename contains' option If you've already run the search and want to alter the search to only look for files with your search term in the filename, ...


8

Has your spotlight been botched? IN short, finder relies on spotlight to find things quickly. This will take a while (5 or so mins) and make your Mac go into "jump-jet" mode with the fans, but: Drop to terminal type in sudo rm -rf /.Spotlight-V100 then sudo rm -rf /.Spotlight-V200 then sudo mdutil -i off / then sudo mdutil -i on / finally sudo mdutil -E / ...


7

If you hold option the (+) button to add a search criteria will become a (…) and an Any/All/None block. Set this to None. For the criteria select Document Container. It won't be in the default list alongside Name, Kind, etc. Select Other… to select it from a list of additional criteria so long it has its own search feature: Set this to the name of the ...


7

I typically use TextMate: TextMate (1) is/was a buy product, but TextMate 2 is currently under active openSource development on gitHub and free to use.


6

Searching SMS messages was disabled due to battery life and performance concerns for the 3G, you can see this in the iPhone: Which iOS 4 software features does my iPhone support? article on apple.com http://support.apple.com/kb/HT4204 iPhone 3G does not support Spotlight search for SMS/MMS messages.


6

the query string is defined in : ~/Library/Safari/Configurations.plist.signed but the file is signed and cannot be edited without being replaced by safari. Also, it seems that every time you use this search bar, Safari hits This file on apple.com which can make one assume that Safari compares the 2 files and replaces the local one when needed. I think ...


6

I looked at some of the saved search files in Finder's application bundle, and for example /System/Library/CoreServices/Finder.app/Contents/Resources/MyLibraries/myDocuments.cannedSearch/search.savedSearch used a format like this for excluding directories: <key>FXScopeArrayOfPaths</key> <array> <string>~/</string> ...


6

This should work: mdfind "kMDItemDisplayName == test*.pdf" Enclose the pattern in single quotes and add 'c' to match case-insensitively: mdfind "kMDItemDisplayName == 'test*.pdf'c" Here is a list of available attributes. You can combine multiple attribute/value pairs with &&.


5

Open a new finder window and type "zip" in the search. Select "Zip archive" in "kinds". You can also just type out kind:.zip and press enter and you'll get the appropriate filter: Note - omitting the . after the : results in many compressed files and not just those with .zip extension or literal conformance to that specification.


5

I don't have an iPhone anymore, but my memory tells me this: iPhone Search using the standard search bar. The web search suggestions are at the top. The website search results of the currently viewed website are at the bottom. iPad Search using the standard search bar. The web search suggestions are at the top. To search the website use the entry ...


5

Yes, in both the iBooks and Kindle apps, you can search the full text (excluding text in images) of the book you are currently reading. Here's how to do that in each app: iBooks app While reading a book, tap the screen. A magnifying glass icon becomes visible in the top right, along with other controls. Clicking the magnifying glass icon brings up a ...


5

You should use the strings application in the Terminal. strings filename(s) | grep text_to_search_for From Wikipedia: In computer software, strings is a program in Unix-like operating systems that finds and prints text strings embedded in binary files such as executables. I'm not aware of any way to use Finder to search for text in binary files.


5

There are many extensions not listed on Apple's page. However, if they're not on the main page, they're not on Apple's site at all. Your cmd-f solutions is the best option if you want to search just the extensions that Apple has listed. If you want to broaden your search to more of the extensions available, turn to third-party sites: ...


5

Yes, if you start typing, it'll select files/folders with what you type. The only difference between this functionality and Ubuntu's is that OS X's equivalent of this feature doesn't show what you're typing.


5

I've not found a way to get Preview to search for characters like # or +, but Skim, an alternative PDF viewer (homepage here), is a good replacement/addition to Preview and is able to search more specifically. I've tested it and found it was able to find C++ (without needing any quotes/special options) without bringing up all C results. It was also able to ...


5

dupeguru picture ed is free and does exactly that. http://www.macupdate.com/app/mac/22724/dupeguru-picture-edition


5

The keyboard shortcut was changed to ⌃⌘F. If you open a window with ⌃⌘F, there is no indication in the UI that Finder is matching only filenames other than that the "Name matches" item in the suggestion list is selected: Finder should only match filenames even if you don't press return though.


5

You need to escape your quotes like so: mdfind \"I love Apple\" -onlyin ~/Documents This results in just the one document being found: ~/Documents/test1.txt Without escaping them, I don't think the quotes actually get passed to the mdfind command, they're just interpreted by your shell to say that I love Apple is a single argument. With the ...


5

Fire up Safari and check the settings for the default search engine. For me that is google and searching the way you described it for me opens safari (currently my default browser) with a google search. The option is right there on the first settings tab. I included an image detailing where to find it (sorry for the german):


5

You can easily build this yourself with some shell commands: find ~ -type f -exec md5 -r '{}' \; > /tmp/md5.list will build a list of md5 hashes over all your files. grep $(md5 -q FILE-TO-SEARCH) /tmp/md5.list will search for the md5 hash of FILE-TO-SEARCH Running the first command (especially if you run it across the whole disc) will take a long ...


5

You might also use fdupes. It doesn't have an option to search for duplicates of a specific file, but you can just grep the output for the filename: fdupes -r1 .|grep filename -r recurses into directories and -1 prints each group of duplicate files on a single line. Other useful examples: fdupes -r . finds all duplicate files under the current ...


4

You can provide multiple -type options with -o, such as -type f -o -type d in a single command. find . -name "*Xilisoft*" -type f -o -name "*Xilisoft*" -type d -o matches all parameters, so the -name is provided twice in the above command. Note that find can delete the results using -delete rather than -exec rm -rf {}.


4

You can make a smart mailbox where "From" "ends with" "ru".


4

The double quotes can also be placed inside single quotes: mdfind '"exact phrase"' This would search only in the contents: mdfind 'kMDItemTextContent=="*exact phrase*"'


4

Finder offers the Go to Folder function (found in the Go menu, or by pressing ⇧⌘G), which allows you to type in a path, and has tab-completion (i.e. typing /us TAB r TAB doc TAB gets /Users/rob/Documents/). It's not perfect, the main downfall is that it doesn't present multiple options, it just chooses the last alphabetical match (i.e. if you type do, in a ...


4

As far as I know, unfortunately it's not possible to do this. Strangely, I also set the 'Document Container' criteria within Spotlight and it wouldn't show any results at all. This is extremely poor behaviour, I agree. You can give Apple feedback on OS X (from which you can post feedback on Spotlight) here.



Only top voted, non community-wiki answers of a minimum length are eligible