Skip to content

Instantly share code, notes, and snippets.

@jamesrampton
Last active October 8, 2019 21:16
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jamesrampton/4503412 to your computer and use it in GitHub Desktop.
Save jamesrampton/4503412 to your computer and use it in GitHub Desktop.
Clean up Mac OS X Open With menu
#!/bin/bash
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
killall Finder
@jamesrampton
Copy link
Author

Why Mac OS X doesn't do this after updating software I do not know

@paul-hammant
Copy link

What does this do ?

@DonRichards
Copy link

DonRichards commented Apr 5, 2018

@paul-hammant If your "Open With" menu shows applications that are no longer installed, or shows some of them as duplicates, you can use that Terminal command to rebuild your LaunchServices database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment