Tag Info

Hot answers tagged

35

Finally, I found a hack! I wrote a blog post about this which you can find here (in Chinese). These are the key steps: Open the file with Xcode: ~/Library/Preferences/com.apple.spotlight.plist If you do not have this file, change the order System Preferences → Spotlight which will cause the OS to create it. Within the orderedItems node, add a ...


28

For just a particular mounted volume - like a flash drive called yourUSBstick in this example - these commands will remove existing cruft, stop Spotlight indexing now and in the future, stop the related fsevents logging, and disable the Trash feature. mdutil -i off /Volumes/yourUSBstick cd /Volumes/yourUSBstick rm -rf .{,_.}{fseventsd,Spotlight-V*,Trashes} ...


17

You can try to temporarily disable Spotlight, removing its files and then reenabling it. The process to do this involves executing Terminal commands, so please pay attention and triple check each step. Open a Terminal.app (/Applications/Utilities/Terminal.app) and type: cd /Volumes ls -l Examine the output of that, one should be your “broken” Volume. ...


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


15

I, too, had the reindexing problem happening after I upgraded to Lion. However the problem didn't exist for every user, just for the one that was using FileVault 1. After a few weeks I got overfrustrated and ran… † $ sudo mdutil -a -i off … in Terminal — and the same minute I realised that the setting was applied system–wide. I shrugged and enjoyed a few ...


15

I had the exact same problem, with all solutions above failing identically. Then I reexamined the directory listing for / and found a hidden file .metadata_never_index in the root directory. I removed this file and was able to turn spotlight on again with mdutil -i on /. mds is now reindexing the hard disk, all looks good for now.


15

In 10.8, you can press ⌘L to select the look up item (to see the definition within Spotlight) and ⌘D will open the definition of the typed word in Dictionary.app.


14

As I know you have 2 choices : TinkerTool (free) BlueHarvest (commercial)


14

To disable, open Terminal and run sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist This disables the Launch Daemon that starts and keeps it running. You can also run: sudo mdutil -a -i off but from looking online in a few places, this may give you an error like 'Spotlight server is disabled' If you disable though, ...


14

This works at least up to 10.9.2. To disable: sudo mv /System/Library/CoreServices/Search.bundle /System/Library/CoreServices/Search.bundle.bak killall SystemUIServer To re-enable: sudo mv /System/Library/CoreServices/Search.bundle.bak /System/Library/CoreServices/Search.bundle killall SystemUIServer


13

It's due to the lack of precision of pi and due to the overall all lack of precision in the built-in system. pi = 3.1415926536 pi/2 = 1.5707963268 cos(1.5707963268) = -5.103412e-12 FYI = 5.103412e-12 = 0.000000000005103412 ~ 0 About the overall system precision : 3.141592653589793238462643383 = 3.1415926536 In Python we get following : ...


12

Another way to deal with (just the) spotlight files, is to add that volume to your Spotlight exclude list. Plug the device in, and go to the Spotlight prefpane in System Preferences. Select the Privacy tab. Now drag that volume from your desktop up into the privacy list.. or use the + button at the bottom to add it. No more spotlight indexing will happen ...


11

One thing is speed. I believe Alfred is currently faster than Spotlight. And, this is specifically for Lion I believe, Alfred learns where Spotlight doesn't. If I want to launch Adobe Photoshop and start to type 'Ph' Alfred will offer Photoshop as an option and move it to the top with the more I select it. With Spotlight, Photo Booth with be the first ...


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


10

It used to be the realm of the first menu-bar item to start the got the prized first (last?) slot in the menu bar. But since Spotlight, it's always had the prime location to itself. Now it's been usurped. That's not to say that some command line hack won't turn up that can change things, but as things stand there is no officially supported/provided way of ...


9

I figured this out. One of the spotlight plugins was causing errors, which closer scrutiny of the Console log revealed. I found out which app was causing the problem by looking in /Library/Logs/DiagnosticReports There I found several crash reports from mdworker (the backend to Spotlight). All crashes were caused by the same app plugin. I have now ...


9

In the Finder, press CommandShiftG for Go to the Folder. Type /usr/local/Cellar/macvim/7.3-61/ and press return. Select the file (actually a folder) MacVim.app Press CommandL for Make Alias. Depending on permissions, you may be prompted for an administrator password here. Press CommandN to create a New Finder Window. Press CommandShiftA to go to the ...


9

To keep Spotlight from indexing non system volumes, add /Volumes to the Privacy list in System Preferences > Spotlight. /Volumes is the point in the file system where all non-system disks are mounted by default.


9

In a nutshell, how would one access this feature in Finder – not Spotlight (Command+Space) – but the adding of tags themselves? From Finder, highlight a file and hit Cmd-I (or right click and select Get Info) to bring up the File Info Dialog for the file. In this dialog the Spotlight Comments field is where you add tag data. Just add text to this field ...


8

If mds is continually using that much CPU then something else is wrong, that's not usual behaviour. Once the index is created, it's incrementally updated and shouldn't be using that much CPU at all. However, you could try telling Spotlight only to display Mail Messages in searches. You'll find that option in System Preferences in the Spotlight section. ...


8

Hitting ⌘+↩ does the trick.


8

Insert the USB drive. Navigate to Macintosh HD > Applications > Utilities and open Terminal. At the Terminal prompt, type the following command, replacing path_to_volume with the real path: sudo mdutil -i off /path_to_volume Press return. If prompted for a password, type your admin password, then press return. You will receive the response: ...


8

mdfind seems to ignore a lot of hidden files. mdfind 'kMDItemFSInvisible==1&&kMDItemFSName==filename' does list .DS_Store files, but not for example .bash_history. I haven't found any way to search for files in some hidden directories like /private/etc/. Anyway, Find Any File is a lot faster than find. Find Any File is a program for Mac OS X ...


8

I posted this workaround in that topic. Here it is (it is not a solution, only a temporary workaround to let my backup and Spotlight work until a fix is released). Using Terminal: I disabled Spotlight indexing: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist I deleted Spotlight index in all my drives (including the ...


7

From the Mac OS X 10.5 Help Use quotation marks around text to search for exact phrases — the same way you do with most Internet searches. For example, enter “trip to France” in the search field to find items on your computer that contain that exact phrase. If you didn't use quotes, the search results would include items that contain any ...


7

Phew! I decided to do more digging on my own. I took a look at a computer still using Snow Leopard and right-clicked on its "Today" folder to reveal its path: /System/Library/CoreServices/Finder.app/Contents/Resources/CannedSearches It turns out this directory still exists in Lion! So go to Finder, and use the Go To Folder command (cmd-shift-g), and enter ...


7

In addition to @jmlumpkin's Terminal command, you could simply add your entire hard drive to the Privacy tab in Spotlight preferences. You'd also want to add any external hard drives you regularly plug in. The same caveat applies: you wouldn't be able to use it as an application launcher, so you'd need to get something like Quicksilver or LaunchBar. To ...


7

Check your console log file and look for lines like this (the real log lines will have process IDs and dates): sandboxd: mdworker deny mach-lookup com.apple.ls.boxd mdworker: Unable to talk to lsboxd If you're seeing that, it is probably the source of the problem. Something Appple did with this latest release (also affects Mountain Lion 10.8.2). I ...


7

You can change the settings from the Advanced...button in the Language & Region preference pane. Remember that you have to either reboot or log out for the changes to be applied to Spotlight!


6

Yes, open the Spotlight prefpane and under the Confidentiality tab (not sure, but on my French system it is called "Confidentialité"), you can add folders and volumes not to be indexed.



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