Set Clipboard to Markdown Link of FrontMost Browser [Wiki Example] Macro (v9.0.1d2)

MACRO:   Set Clipboard to Markdown Link of FrontMost Browser [Wiki Example]

~~~ VER: 1.0    2019-08-25 ~~~

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:

Set Clipboard to Markdown Link of FrontMost Browser [Wiki Example].kmmacros
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.


Release Notes

Author.@JMichaelTX

PURPOSE

  • Set the System Clipboard to a Markdown Link of the Current Page of the FrontMost Web Browser
  • Must be Safari, Google Chrome, or a Chrome-based Browser

HOW TO USE

  1. First, make sure you have followed instructions in the _ Macro Setup _ below.
  2. Open your web browser to any page
  3. Trigger this macro.

MACRO SETUP

Make These Changes to this Macro

  1. Assign a Trigger to this macro.
  2. Move this macro to a Macro Group that is only Active when you need this Macro.
  3. ENABLE this Macro, and the Macro Group it is in.

1 Like

Hello, is it possible to combine these two elements into one? For example take the link and apply it as a Hyperlink to the text and then remove the visible link now that its embedded as a hyperlink?

Hey James,

Welcome to the forum!   :smile:

I'm not clear on what you mean.

Jim's macro creates a markdown link. Period.

Are you wanting to create a Rich-Text-Link?

-Chris

A rich-text-link sounds like what I’m looking for.

I did find this: Copy and paste webpage URL and title

…which does seem to work well for my purposes. It has a few extras I wish it didn’t have (I’m not advanced with this software or it’s coding) but it works for the most part for my purpose I suppose.

Okay, look here:

Set Clipboard to RTF Hyperlink & Plain Text MD Link

You can also search the forum for: “rich text link”.

-Chris

1 Like

I’ll give that a try. Thanks!

That somewhat works, however I would like it to automatically grab the title and url and merge them together without a pop up window so I can just paste the Hyperlink into a cell in OneNote. Ill have to modify it somehow. Thank you.