Keyboard Shortcut to Open Hyperlink

I want to open a link using a keyboard shortcut. If the cursor is placed next to or within a link (as in the yellow sticky note in attached), I want to be able to press Control + H to open the link.

I got as far as making the attached macro. But instead of moving and clicking relative to the mouse position, I need to be able to move and click relative to the cursor position. Is there a way to do this?

Below is just an example written in response to your request. You will need to use as an example and/or change to meet your workflow automation needs. Specifically you will need to assign whatever HotKey trigger you would like.

Please let us know if it meets your needs.


MACRO:   OPEN Text URL or Markdown Link

-~~~ VER: 2.0    2021-01-22 ~~~
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:

OPEN Text URL or Markdown Link .kmmacros
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.


Author: @JMichaelTX


  • Using Selection, or Entire Paragraph if No Selection, open the link in the default app (web browser or other app)
  • The text may be any of the following:
    • Web URL
    • Markdown Link of Web Page
    • App Specific URI


(1) SELECT text of URL to Open
Place cursor at the beginning or end of paragraph, or in the paragraph
(2) Trigger this Macro.