Use Case
- Set the System Clipboard to BOTH a Rich Text Hyperlink, and a Plain Text Markdown link, of the FrontMost Browser.
- When you Paste, it will automatically use the format of the receiving document.
MACRO: Set Clipboard to Rich-Text (RTF) Hyperlink & Plain Text MD Link VER 3 [Example]
--- VER: 3.0 2020-03-05 ---
Requires: KM 8.2.4+ macOS 10.11 (El Capitan)+
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))
UPDATED: 2020-03-05 17:00 GMT-6
- This is a MAJOR update, which takes advantage of the KM8+ FrontBrowser tokens.
- Works with Safari, Google Chrome, All Chrome-based Browsers (like Brave Browser), and Firefox.
DOWNLOAD Macro File:
Set Clipboard to Rich-Text (RTF) Hyperlink & Plain Text MD Link VER 3 [Example].kmmacros
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.
ReleaseNotes
Author.@JMichaelTX
PURPOSE:
-
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.
- Based on the FrontMost Browser, create and put on Clipboard:
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
- ENABLE this Macro.
TAGS: @WebScrape @Hyperlink @Link @URL @RTF @MD @Markdown
USE AT YOUR OWN RISK
- While I have given this limited testing, and to the best of my knowledge will do no harm, I cannot guarantee it.
- If you have any doubts or questions:
- Ask first
- Turn on the KM Debugger from the KM Status Menu, and step through the macro, making sure you understand what it is doing with each Action.