Bug Report: File Rich-Text Hyperlink in KM Comments Opens in Finder (or Path Finder)


@peternlewis...


Bug Report

Running Keyboard Maestro 9.2 on macOS 10.14.6 (Mojave)

Observed Behavior

  • When I click on a hyperlink in a KM Comment Action that is a file hyperlink (file:///), the link is opened in Finder, or Path Finder (depending on your default)

Expected Behavior

  • Link should open in the default App set for the file extension
  • It should behave just like the KM Action Open File using Default Application.

See attached Macro for an example.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MACRO:   Demo of File Rich-Text Link in KM Comment

--- VER: 1.0    2021-03-03 ---
Requires: KM 8.2.4+   macOS 10.11 (El Capitan)+
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))

DOWNLOAD Macro File:

Demo of File Rich-Text Link in KM Comment.kmmacros
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.


Are we certain that's a bug? I get the same result in KM under 10.11.6 (El Capitan)—file is revealed in the Finder instead of opened in its default app—but the same result also occurs when I click the same file:/// link in apps like Notes or TextEdit.

This is a system behaviour, Keyboard Maestro does not do anything regarding this except allow the rich text to include links.

Thanks for the reply.

I suspected this might be macOS default behavior.

Does the rich-text control that you use in a Comment Action have any options or settings that might change the behavior?

Nope. It's just a boolean, isAutomaticLinkDetectionEnabled.

It's not impossible that I could intercept the link, but it's the system behaviour so it would not be appropriate for me to do that even if it were possible.