Copy & paste from single line command string:
1 | /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" |
OR
Same command string broken into multiple lines:
1 2 | /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/\<br> LaunchServices.framework/Versions/A/Support/\<br> lsregister -kill -r -domain local -domain user |
from:http://osxdaily.com/2013/01/22/fix-open-with-menu-mac-os-x/