After noticing that some of my file associations seemed to be FUBAR and that there was a long delay with Yosemite reporting "fetching..." in the "Open with" part of Get Info, I rebuilt the launch services database using the following Terminal command:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed -r -f -v -domain local -domain user -domain system
After doing that, the delay with "fetching..." has gone away, but a number of my files have bad icons (see screenshot). Doing a "Get Info" on those files show that the file association with Excel is correct, and double clicking on those files in Finder launches Excel, as it should.
Why are the icons wrong and what do I do about it?
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed -r -f -v -domain local -domain user -domain system
After doing that, the delay with "fetching..." has gone away, but a number of my files have bad icons (see screenshot). Doing a "Get Info" on those files show that the file association with Excel is correct, and double clicking on those files in Finder launches Excel, as it should.
Why are the icons wrong and what do I do about it?