Skip to main content

Tips: Delete duplicate entries in "Open With..." dialog in Finder


Duplicates!!!
When you control+click (or right click if you have enabled that option) on Mountain Lion, and there seems to be several duplicate applications listed and/or apps you no longer use, here is a Terminal shell script that will fix that.  Just copy and paste the code below in a Terminal window.

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

(Terminal can be found using Launchpad or Spotlight) After pasting, hit the Return key and allow time to run, then type "killAll Finder" without the quotes, and Return.  This will rebuild the "Open With..." menu.  If you do not see an immediate effect on the lists, restart your Mac.  Should be no need to restart. (Thanks, JK)
Duplicates and old apps gone!

If you wish, you can make a Service that will do it using Automator as well:
Open Automator (Launch Pad or Applications folder)
Create Service (Gear Icon)
Make new Service using Automator
Next, add a Run Shell Script step and type in the code above.  (Paste it in if you want to save typing and reduce errors.)
Then add another Run Shell Script with the killall Finder command.
Save as a service with a name you choose. Then Select from the Services menu when you need it.

Service Workflow

Comments

Unknown said…
Good tip! There's one way you can have it take effect without having to restart your Mac. After the first command in Terminal, do a second command killAll Finder When Finder comes back the duplicates will be gone.

I've had the same issue. Evernote and Pixelmator seem to be the biggest offender for this. Is it the way they update? I have no idea.
Unknown said…
Great tip! Thanks!! That was driving me crazy! :)

Popular posts from this blog

Acid3 Test

I did an Acid3 test with a few browsers and these are the results I got.  For those unfamiliar, as I understand it, Acid3 is a test to see how compliant a browser is with current standards with the W3C . Browser # 1: Chrome by Google.  Running under Windows Vista Home on my Mac in VMWare. 79/100 Not bad for a new browser.  I'll be curious to see what the Mac version will do when it comes out. Browser #2: Firefox v.3.0.1 Mac OS X 10.5.4 71/100 Not as good as Chrome, but I have a PILE of extensions on Firefox. Browser #3: Safari 3.1.2 Mac OS X 10.5.4 75/100 Better than Firefox but still lower than Chrome. My take is overall they seem to perform about the same but I'll stick with Safari for now.  I use Firefox for much of my web browsing, but Safari is fast becoming a close second. Someday, maybe I'll test Opera too. Cheers!

Do You Need to Defragment a Mac’s Hard Drive?

--> Do You Need to Defragment a Mac's Hard Drive? About Focus on Macs In my mailbag this week, I found a couple of questions about defragmenting a Mac's hard drive. This question usually comes from new Mac users, or individuals who switch to the Mac from the Windows environment, where disk defragmentation utilities abound. Some individuals want to know which third-party disk defragmentation app they should use, or wonder why there is no defrag tool in OS X. Courtesy of Apple OS X does have disk defragmentation capabilities, but they're built into the system rather than a separate tool. Since OS X 10.2, Apple has included automatic defragmentation in the Mac OS. In essence, the Mac OS has built-in safeguards that attempt to prevent file fragmentation from occurring; it's also able to repair fragmentation, should it occur. This means that for the average Mac user, there really is no reason to worry about disk defragmentation, at least not as ...