Paste Clipboard Image Into Body of KM's Send Mail Message Action

I use this in the body area of the send mail message action:

%NamedClipboard%Clipboard 01% (which is a saved image, in the clipboard 01)

But it only pastes "No Text in Clipboard".

Any help would be appreciated.

I have NOT tested this, but I suspect that the KM Action for “Send Mail” does NOT support images in the body.

You might try copying your signature as rich text (normal copy) and create a Named Clipboard based on that.

Did you ever get this to work?

Can't say that I ever did get it to work, but if you post a new topic maybe one of the 'elders' on the forum could help find a solution... there's usually some way to 'skin the cat'.

All the best

Hey @troy,

Jim was right. Embedded images are not supported by KM's Send Mail action, although you can attach one at the end of the message.

Because – it's all AppleScript under the hood, and Apple doesn't support embedded images and styled text. (Bad Apple!)


That said this task is easily accomplished by manipulating the UI. For instance:

  • Create a new mail message with the KM Send Mail Action.
  • Use a placeholder for the image.
  • Use the Set Find Pasteboard action to put the placeholder text in the find pastebboard.
  • Have KM press Cmd-G to go to that placeholder.
    • This requires moving the cursor into the mail body,

Download: Send Email with Embedded Image v1.00.kmmacros (14 KB)

Macro-Image

Macro-Notes
  • Macros are always disabled when imported into the Keyboard Maestro Editor.
    • The user must ensure the macro is enabled.
    • The user must also ensure the macro's parent macro-group is enabled.

System Information
  • macOS 10.14.6
  • Keyboard Maestro v10.2

Another alternative that might work.

I have not tested this method with images – only with styled text.

This method has its problems, but they can be worked around.

-Chris

1 Like