0

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?

2
  • The application that responds to the file URL is the Finder. You would need to change the application that processes the URL to one that opens the file. It could probably be done with a small Automator application that has a shell script using the open command.
    – benwiggy
    Dec 3, 2023 at 14:27
  • See apple.stackexchange.com/questions/407744/… which is kind of the 'opposite' problem but the answer is similar.
    – Tetsujin
    Dec 3, 2023 at 18:19

0

You must log in to answer this question.

Browse other questions tagged .