I can create a hyperlink within a document in e.g. TextEdit, and set the URL of the hyperlink to file:///path/to/my-file.txt
.
When I click on the hyperlink, I want my-file.txt to open in the default application for that file type.
Instead, when I click on the hyperlink, a Finder window opens with my-file.txt selected.
This happens with every file type and every application that I've tried.
Is there a way to change macOS's behavior here?
open
command.