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

For some apps that don't support markdown syntax, how can you use Keyboard Maestro to change the text of a hyperlink before insertion?
This is an online tool for whiteboards called OrgPad, and B is the desired result.

What is wrong with the markdown syntax in A, please? It causes the paste into OrgPad not to work as well as B. I am using Keyboard Maestro to insert some custom text into OrgPad.

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

Thank you very much, my problem was solved!

1 Like