For instance, you may wish to open a JPEG image with Photoshop rather than Apple’s Preview.

This is my favorite method for quickly opening documents in other applications.

It can also start to display duplicates of applications.

You reset the ‘Open With’ menu by rebuilding the Launch Services database your Mac maintains.

There are multiple ways to rebuild the Launch Services database, including third-party system utilities like Cocktail and Onxy.

Using Terminal to Rebuild the Launch Services Database

Launch Terminal, located at /Applications/ Utilities/.

you’re able to simply copy/paste the above command intoTerminal, then press Return/Enter to execute the command.

If you have difficulty selecting the command above, triple-grab the command text.

The rebuild process can take a minute or two.

Once the Terminal prompt returns, you might quit Terminal.

Reference

Launch Services

lsregister man page