Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have some documents - mostly XLS files - which have different file associations in Spotlight than in Finder. The XLS opens the way I want in Finder, with Mac MS Excel, but when I try to open it immediately from Spotlight it retains a previously assigned association, which is with Windows Excel in Parallels.

How can I reset these Spotlight-specific associations to be consistent with what I set in Finder?

I'm on Leopard (10.5.8)

share|improve this question

2 Answers 2

up vote 1 down vote accepted

The easiest option is to rebuild your Launch Services cache by running the following command in

10.4 and earlier:

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user /

10.5 and newer:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user /

Coincidentally for better or worse, in Snow Leopard, Apple has dropped support for types of documents to have different creators (eg. Have an .xls open in one app (eg. Excel for Mac) but another in another app (eg. Numbers))

share|improve this answer
I am afraid there is no "/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServi‌​ces.framework" directory on my Mac. I only found it in the /Developer hierarchy, and it does not contain the lsregister executable. – ttarchala Dec 1 '09 at 10:04
@ttarchala: Sorry - added the proper path for 10.5 and 10.6 – Chealion Dec 1 '09 at 16:32
This worked, but I had to restart before I could see the results. – ttarchala Dec 2 '09 at 16:12

Actually the easiest way is to select an '.xls' file in the Finder and do a Get Info on it.

Then under the "Open with" section select the app you want it to open with (If the app you want is already selected chose another app then set it back).

Then click the Change All... button which will associate all files of that type with the application you chose.

share|improve this answer
I've already done that a couple of times. It works in Finder, but does not help with the Spotlight association. – ttarchala Dec 1 '09 at 10:04
Strange, I just associated .xls files with Numbers using the method above and while the icon spotlight displays is wrong they do open with Numbers now. The only thing I can think of to try is to rebuild the spotlight index with: sudo mdutil -E but it will take some time and resources. – cOle2 Dec 1 '09 at 15:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.