Tag Info

Hot answers tagged

14

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 ...


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

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 ...


10

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, ...


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

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

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.


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

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

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

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

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> ...


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

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.


4

I'd venture to guess and say that the App Store ranking algorithm is a company secret, much like Google's web search rankings. It seems to me that the radical changes in placement you are witnessing are as much the fickleness of App Store customers as anything else. Correlation isn't causation by any means, but it seems fairly clear by your description of ...


4

Apple does not search for very old text messages as it makes the search much slower. There is no setting to modify the period of messages it should go through, but if you really need this then you can jailbreak and SSH into your iPhone. You can then edit the .plist file and make it search for messages that are even 2 years old. Note: This will significantly ...


4

I believe "Search in Google" is a Mac OS X service provided by Apple. Maybe since they don't know how to pass a webpage in parameter for every browser in the wild, I suppose they limited it to Safari. What you might try, is to develop your own Service, then go to System Parameters > Keyboard > Services Disable the "Search in Google" by Apple and ...


4

You might want to try the following: Search for and highlight the file in Spotlight as usual. Hold down cmd (command) and press Enter (return). This should open the file's containing folder, and works in all recent versions of OS X.


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.


4

Sublime Text is what I use, it's great! Sublime Text: is free to evaluate (no time limit imposed) can search and replace can search by regular expression can search across multiple files can search across nested directory structures can use values from the search in replace expression has an easy to use user interface


4

Use locate, grep or find at the command line. Open Applications>Utilities>Terminal and either use: sudo locate -0 '*.txt' | xargs -0 grep WORD 2>/dev/null Substitute WORD with the word you want to search for. This is by far the fastest method. I'd recommend to recreate the locate database first to improve accuracy: sudo /usr/libexec/locate.updatedb ...


4

You can use Boolean operators: Use Boolean searches: Use Boolean operators such as AND, OR, and NOT. For example, to search for messages that contain “yosemite” and “yellowstone” but not “teton,” type “yosemite AND yellowstone NOT teton” or “yosemite AND yellowstone -teton.” You must type Boolean operators in uppercase. Souce: ...


3

There's a plugin for Safari called Glims that lets you add different search engines (including Wikipedia) to the search bar among other tweaks. You can read about and download it here. Here's a post on someone's blog that details how to install it and set your search engines to what you want. Hope that helps!


3

Search using the name: selector I've also become a big fan of the Found app. It's currently free on the app store and lightning fast (seems faster than LaunchBar to me - and that's saying a lot as it's a speed demon).


3

I don't use it, but GLIMS looks like it will easily let you insert a search engine different than what Safari bundles. More intrusive, but way slick in my opinion is the SafariOmnibar it's excellent work and you can customize your search provider since it's hacked into that part of safari using SIMBL - the SIMple Bundle Loader process. I use LaunchBar and ...


3

As an update to my own question, I have just come across this Safari extension which redirects searches from google.com to google.co.uk. It also redirects Yahoo searches from search.yahoo.com to uk.search.yahoo.com.


3

The rankings are complicated and take many things into account. It's not publicly disclosed and the rankings are being tweaked over time as Apple learns what customers want (filtering shill reviews from demo codes, weighting reviewers and stars, aging older data out faster, recent sales data seems to be very important.) Also, there has been a see saw of ...


3

It's already been answered, but here's my 2 cents. Via Bash through the terminal find ~ -type f -name '*pdf' or find ~ -iname '*pdf' or you can use this to search for a string in a file: find ~ -iname '*txt' | xargs grep 'string you want' This may not return anything on a pdf, but it will work on most other file types (text, php, py, html, etc).


3

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 ...



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