Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ramdyne/a744361b056df9b957b9188b73afbcab to your computer and use it in GitHub Desktop.
Save ramdyne/a744361b056df9b957b9188b73afbcab to your computer and use it in GitHub Desktop.
Short steps o how to remove stale "Open With" entries from Finder menu
ramdyne ~$ cd "~/Library/Application Support"
ramdyne ~/Library/Application Support$ ls -al
drwx------ 21 ramdyne 501 714 Apr 10 2017 AddressBook
drwxr-xr-x 3 ramdyne 501 102 Nov 20 2017 Apple
drwxr-xr-x 22 ramdyne 501 748 Oct 9 2013 Apple Qmaster
drwxr-xr-x 2 ramdyne 501 68 Oct 19 2014 CloudDocs
...
drwxr-xr-x 3 ramdyne 501 102 Nov 20 2016 VLC
...
drwxr-xr-x 3 ramdyne 501 102 Mar 11 2016 org.videolan.vlc
...
ramdyne ~/Library/Application Support$ rm -rf org.videolan.vlc
ramdyne ~/Library/Application Support$ rm -rf VLC
ramdyne ~/Library/Application Support$ /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
ramdyne ~/Library/Application Support$ killall Finder
ramdyne ~/Library/Application Support$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment