A keyboard or trackpad/mouse shortcut to open a file in a different app

I have many HTML files and whereas sometimes I need to view them in Safari, other times I need to edit them in Sublime Text.

Is it possible to make it convenient? For example:

  • Double-click or Command-Down for Safari
  • Command-Doube-click or Command-Shift-Down for Sublime Text

Which third-party app can be used for this? Or maybe it can be automated using built-in tools such as Automator?

In Automator, you can make a Quick Action that opens selected files in an app, like this:

Then give it a keyboard shortcut in Keyboard Shortcuts in Settings. Your quick action should be in Services > Files and Folders.

1 Like

Maybe I’m missing something, but you can right-click any file and select ‘Open With…’ from the contextual menu. Built-in functionality.

1 Like

The point is to make it convenient for quick use. No need to open the context menu, then click item there, and then click another one item in submenu.