Mac Tip: Cleaning up the “Open With…” Menu

Run this command in Terminal and your “Open With…” contextual menu will be cleaned of old versions of programs or programs that no longer exist.
/System/Library/FrameWorks/ApplicationServices.framework/\
Versions/A/Frameworks/LaunchServices.framework/Versions/A/\
Support/lsregister -kill -r -f -domain local -domain system -domain user