Skip to content

Instantly share code, notes, and snippets.

@sverweij
Created January 5, 2014 17:22
Show Gist options
  • Save sverweij/8271012 to your computer and use it in GitHub Desktop.
Save sverweij/8271012 to your computer and use it in GitHub Desktop.
De-duplicate MacOSX "open with" menus
#!/bin/sh
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user
killall Finder
echo "Open With has been rebuilt, Finder will relaunch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment