Set Clipboard to Rich-Text (RTF) Hyperlink & Plain Text MD Link
Based on the FrontMost Browser, create and put on Clipboard:
* RTF formatted Hyperlink
* One or All Plain Text Links
(based on KM Var "CBPlainTextType")
* Markdown code
* BBCode
* Wiki
When You Paste, it will use the format of the receiving document.
REQUIRES:
KM 8.0.2+
macOS 10.12.6+ (Sierra+)
HOW TO USE:
Have Safari, Chrome, or FireFox as the ACTIVE, frontmost app
Trigger this Macro
After the Link Text and URL are extracted, a Prompt will be shown to allow you to confirm or change this info.
MACRO SETUP
Carefully review the Release Notes and the Macro Actions
Make sure you understand what the Macro will do.
You are responsible for running the Macro, not me. ??
Assign a Trigger for this macro
I prefer ⌘⌥C.
Move this macro to a Macro Group that is only Active when you need this Macro, most likely a Group for Browsers
I just discovered a cool, unexpected, benefit of this macro/script.
If you select a hyperlink from a Google Search, it will create a very clean hyperlink with ONLY the intended destination. IOW, it cuts out all that Google noise.
This is an excellent script! Is it possible to copy the Title and URL automatically so it doesn't have a pop up? Then I can just paste into my desired destination.
This action is there for a reason. It allows you to check the link before pasting it somewhere else. It also allows you to change the format at the last moment.
It does not really matter as long as you run it only when Edge is the front browser. However, to make the macro run only when Edge is the front browser, put the macro in a macro group and set it to add Microsoft Edge to the list.
I seem to have gotten it to work, but why does it create a large two line gap when I paste? I pasted it at the white cursor location and it pastes two lines down.