How can you use Keyboard Maestro to change the text of a hyperlink before insertion?

The macOS clipboard often contains several different pasteboard items, each in a different format, for example:

  • public.utf8-plain-text
  • public.rtf
  • public.html

The choice of what pasteboard types to put into the clipboard is made by the application from which you copy.

The choice of which pasteboard to use when you paste is made by the receiving application.

OrgPad, for example, may look for public.rtf (rich text) content first,
and then, if it fails to find any, fall back to any public.utf8-plain-text

What you need, in other words, is a public.rtf version of the link in your clipboard.

You can get this by copying the URL and label with this Keyboard Maestro macro:

For the latest version, use the green Code button on the Github repository page:

GitHub - RobTrew/copy-as-md-link: macOS Keyboard Maestro macro group – single keystroke to copy MD and RTF or Bike format links from different applications.

1 Like