Why is "Clipboard 4" not pasted and can it be inserted when styled?

This is macro does capture DATE, Safari TITLE and URL, but not the copied text from Clipboard 4 (which I can see is in Clipboard 4).

For Clipboard 4 I only get: %Clipboard 4%

The plan is to style Clipboard 4 with larger text and specific font/ colour.

Two questions

  1. Why is Clipboard 4 not pasted?

  2. And is it possible to style Clipboard 4 (without affecting the top part)?

Any assistance will be much appreciated,
OmarKN

Keyboard Maestro Actions.kmactions (4.7 KB)

Keyboard Maestro Export

Well, for one thing, the token for a named clipboard is not the name of the clipboard in percent symbols, the way you are writing it. Check this page to see how you should be writing it:

https://wiki.keyboardmaestro.com/token/NamedClipboard

The %NamedClipboard% token returns the text of a specified named clipboard. It has the form %NamedClipboard%% where specifies which past clipboard to use.

I don't see anything else wrong besides that, but I have to go get lunch now, so try taking this advice and see if it works.

Yes, it should have been %NamedClipboard%Clipboard 4%

This works.

But is it possible to include a styled Clipboard 4 ?

This is the big question :slight_smile:

/okn

If you look at the pull down menu near the left side of the Insert Text action, you can see this:

Notice the default is NO styled text, but underneath it is an option for styled text.

I have never used that feature, so I'm going to let you test if it solves your problem.

1 Like

This works very well!

So far so good,

except for the top part (capt. == %NumberDate% %Short Time% == %SafariTitle% )

is set to Helvetica 13pt ! extremely small.

No idea why TextEdit or the macro uses only 13pt Helvetica…

TextEdit settings have "Rich text font: Lucida Grande 18"

This is strange, any idea?

/
best regards,
OmarKN

Well then change it! You can change the font, the size, etc. inside that KM action. E.g., Just select the text you want in a larger font, and press CMD-= a few times. That will increase the font size. That's what I normally do. Or try right clicking inside the text field of the Insert action and look at all your options in the Font menu. You can even change text colour.

I suspect that the size difference is explained by your settings in System Settings, Displays, Larger Text. But if you like your custom settings, then you have to fix it using the method I described above.

1 Like

After about 10+ years with KM I never knew this was possible!

The simple solutions are the mmost brilliant ones!

Thank you @Airy

/okn

For anyone interest here is the final macro:

Copy Selected-Text ⇢ inputfile2025.rtf

(Top-area Menlo 16pt, black
Body - the copied text - 20pt )

Keyboard Maestro Actions.kmactions (5.7 KB)

2 Likes