Is there a way to change the color of selected text in Notes app?
read some forum entries, and it seems like Notes doesn't allow it, but, there's a Copy Style, and Paste and Retain Style, but haven't found a way to use them successfully.
Thanks @ccstone, thought about going the AppleScript route, maybe for v2
Had this itch, couldn't get out the idea of using a saved clipboard with a red style in it, so wrote this down, and when I got back to my computer it worked on almost my first attempt
Worked on MacOS Catalina 10.15.7
Text swatch: grabbed it from Notes (added format to a text, copied to clipboard then pasted it as new in Preferences>Clipboard)
Apple Notes: This is what is working for me, but I would love something simpler. I am trying to append a date stamp in apple notes and match the header size font size with lavender color. The "xmm" is a text expander snippet for date stamp of "// 03-26". So make sure to change the typed text to "// MM/DD".
Noob here, but how does that differ between the keyboard shortcut of "cmd+shift+c". Also, the menu item shifts (Show Colors / Hide Colors) based on if the color palate is already visible, so I do not know if the macro fails because of the menu item or how to diagnose. w/ cmd+shit+c at least it goes away and I can re-run the macro.
Anyone have a better idea? Ideally the "Apply Style to …" KM action would just work out of the box with Notes but it appears Notes has a restrictive text ingest layer (so people can paste web stuff in Notes) that messes with that action. It is possible to paste formatted text from Mail.app into Notes.app, however, so some formatting can be pasted in reliably. This might be related to Mail.app producing an public.html version on the clipboard, not just public.rtf.
But one problem with both these methods is they replace the whole style including things like bold text.
So, your method of opening the Colour Picker and clicking on a colour seems the best at the moment. It feels like there should be a better way, but at least this method does just apply colour and keeps the rest of the formatting of the selected text.
I made a variation of your Macro that automatically opens the colour picker if it is not already open and clicks on an image of the actual colour (rather than a coordinate from the found image). There are two Found Image Actions in the Macro as the colour picker changes the image when the colour is selected and puts a grey background behind it. These two found images are set to not abort the Macro or notify on failure - so, whichever image is available is clicked on. Also, if you try this you might have to screen grab your own images and depending on your region use "color" instead of "colour" in the menu Actions.
Still, it would be FANTASTIC if KM could enhance the Apply Style to System Clipboard action to add a public.html version to the Clipboard. It seems that Notes ignores public.rtf but accepts HTML (and their insane com.apple.notes.richtext)…
Would this be more doable if Keyboard Maestro could recognize the Colors palette window? Since the color palette is in different menus and submenus in different Apple apps, I seek a generic solution.
A solution that I wanted to try is:
if there is no window named "Colors"
Cmd-Sh-C to show color palette
Do things at specific locations in the window named "Colors"
... I didn't get much past step 1, because the palette windows aren't in the window list (that I could find).
It's very simple to open the Colors window if it's not already open. Create these three actions: (assign a hotkey of your choice to trigger these actions.)
This works for me. Then you can "do things at specific locations." There are several different ways to "do things". The tricky part is knowing where the window is, in order to specify coordinates. There is more than one way to solve this problem. Let me know if the actions above work for you. If you do this, then some of the advice in the thread above should work for you. If you still have problems, explain what your problems are.