If your "Open With" menu shows applications that are no longer
installed, or shows some of them as duplicates, you can use the
following Terminal command to rebuild your LaunchServices database:
/System/Library/Frameworks/ApplicationServices.framework/\
Frameworks/LaunchServices.framework/Support/lsregister \
-kill -r -domain local -domain system -domain user