I'm hoping something like this already exists out there but I know enough scripting/programming that maybe with a bit of direction I could create something to do this?
If I select a file in Finder and hit CMD+O, of course that file will open with the default application. Often that is fine, but other times I want to open a file in an editor instead. What I'm kind of looking for is a secondary default for Edit instead of Open that I can assigned a shortcut (CMD+E) to. The result would be CMD+O still opens images in Preview but CMD+E opens them in Photoshop for example. I want the same shortcut to work regardless of file type so long as I have a matching editor configured for that type somewhere, otherwise fall back to the open default.
Here's what I've found in my searches around this:
https://www.youtube.com/watch?v=HGqZjG2HiTk
Doesn't really do what I'm trying to do since it would require a different shortcut for each specific application. I'm looking for a single unified shortcut that works regardless of file type that will then open the selected by in that types configured "secondary application" if you will.
Want to add keyboard shortcut to open selected file with specific mac app
This is one possibility - I have Karabiner installed already, as it happens to turn my caps lock key into a shift key. 🤣 Doesn't really seem relevant though as it's for modifying keyboard behaviors/actions, not shortcuts really? Also doesn't seem to have anything to do with finder...
https://www.markosx.com/thecocoaquest/finders-open-in-other-shortcut-that-works-in-mavericks/
This is the most promising, I think. What I'm missing from this is getting the type of the file that was selected and then matching it to an application to open based on that (presumably a switch case)