How to remove duplicate entries from the Finder "Open with" menu

by Volker Weber

Open Terminal and run this command (that is one line):

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

Relaunch the Finder with a Ctrl-Option-Click on the Finder icon in the Launchbar.

Comments

I've got three "evernotes" in there too! What are they playing at?

Chris Lindley, 2012-11-22

How does such a thing happen? When you upgrade the software?

Frank Quednau, 2012-11-22

Exactly. The command just resets the data.

Volker Weber, 2012-11-22

Thanks for the tip

joseph djamasi, 2012-11-22

It's not only when you upgrade software, that you get more entries. And it happens for all apps, not just for one like in vowe's screenshot. Sometimes it just happens for no apparent reason.

Up till now, I have used TinkerTool System to get rid of the excess entries, but the command is way more convenient.

I do wonder what the normal user does when this happens, but perhaps if you don't play with the system as much as I do, it doesn't happen as often.

John Keys, 2012-11-22

The more you tinker, the more you have to tinker.

Volker Weber, 2012-11-22

Volker,

I would suggest appending '&& killall Finder' to the Terminal command. It will relaunch the Finder right from the Terminal after removing the duplicates. The full command would be:

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

Richard van Geilswyk, 2012-11-22

Yes, that makes sense. Thank you, Richard.

Volker Weber, 2012-11-22

A safe boot (press and hold shift key during boot) does the same work and more beneficial services as checking the disk and clearing font and other caches.

I have the lsregister sequence in a shell-script, but find myself leaning towards the safe boot for its other additional benefits.

Chuck Howe, 2012-11-26

Recent comments

Dennis Frank on Drawing on the iPad Pro 12.9 at 12:06
Sami Bahri on Traktor KONTROL S4 MK3 at 10:42
Ragnar Schierholz on Last-Minute-Geschenk :: udoq-Qi-Lader at 08:01
Thomas Mendorf on Traktor KONTROL S4 MK3 at 02:08
Volker Weber on Kleines Update zu ginlo at 00:02
Christopher Schmidt on Kleines Update zu ginlo at 23:53
Jan Van Puyvelde on Tagesangebote heute at 23:32
Kai Schmalenbach on Traktor KONTROL S4 MK3 at 21:23
Marco Schirmer on Traktor KONTROL S4 MK3 at 19:34
Volker Weber on An fremdem USB-Port sicher laden at 17:34
Christoph Jung on An fremdem USB-Port sicher laden at 17:28
Volker Weber on Unfallfolgen :: Ab jetzt geht es bergauf at 17:16
Felix Kluge on Unfallfolgen :: Ab jetzt geht es bergauf at 16:17
Kai Schmalenbach on Android Updates :: Nokia macht weiter alles richtig at 15:45
Adrian Woizik on Traktor KONTROL S4 MK3 at 12:21
Volker Weber on An fremdem USB-Port sicher laden at 10:50
Norbert Tretkowski on An fremdem USB-Port sicher laden at 10:47
Volker Weber on Unfallfolgen :: Ab jetzt geht es bergauf at 10:20
Andreas Braukmann on Kleines Update zu ginlo at 10:16
Christoph Jung on An fremdem USB-Port sicher laden at 09:44
Stephan H. Wissel on Unfallfolgen :: Ab jetzt geht es bergauf at 08:35
Volker Weber on Kleines Update zu ginlo at 01:17
Andreas Braukmann on Kleines Update zu ginlo at 01:08
Volker Weber on An fremdem USB-Port sicher laden at 22:14
Ragnar Schierholz on An fremdem USB-Port sicher laden at 22:13

Ceci n'est pas un blog

I explain difficult concepts in simple ways. For free, and for money. Clue procurement and bullshit detection.

vowe

Contact
Publications
Stuff that works
Amazon Wish List
Frequently Asked Questions

rss feed  twitter  amazon

Local time is 12:21

visitors.gif

buy me coffee