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:   Speak Selected Text @Example

~~~ VER: 1.0    2017-07-18 ~~~

Speak Selected Text @Example.kmmacros (1.8 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.