Acting on selected text not in pasteboard?

Is there a way to make KM do something to a selected chunk of text without having said text in the pasteboard?

  • Example 1: I would like to read selected text with KM’s own customized reading settings w/o first putting it into the pasteboard.
  • Example 2: I would like to replace certain parts of the selected’s text with other characters without first putting it into the pasteboard.
1 Like

In short: No.

But that is generally not an issue/concern, since you can do the KM Copy Action, make your changes to the clipboard, paste, and then restore the clipboard to the state prior to running the macro.

See Delete Past Clipboard action (KM Wiki).

I tried this, but no luck so far:

You have over-complicated it. Plus, you are clearing the Clipboard before you try to "Speak" it, so of course you won't hear anything.

Try this simple macro that will:

  1. Copy selected text (aborts if nothing is selected)
  • Speaks the text on the Clipboard
  • Restores Clipboard state

##Macro Library   Speak Selected Text @Example


####DOWNLOAD:
<a class="attachment" href="/uploads/default/original/2X/6/68dcb585b59256ca2a252e6998b2bd2edc093f6f.kmmacros">Speak Selected Text @Example.kmmacros</a> (1.8 KB)
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**

---


<img src="/uploads/default/original/2X/6/6fe250eff3c32597578abe43146001a333b71c03.png" width="459" height="443">