macOs Preview > Annotate > Highlight Text - change color?

has anyone been able to get a shortcut working to change the COLOR of the highlighting text in Preview app?

In order to change color you have to click on the highlighter icon and manually change!
I've been using the image match to click on the dropdown but its been a little hit and miss.

Saw this done on PDFPENPro (though it has keyboard shortcuts) - but can't find for preview?

Also was reading another post - where changing the Preview text but though Applescript. Not too sure if this is the only path? (im not a coder!)

There might be an AppleScript to do this - my quick search didn't find one but hopefully someone here can solve that as it would be very useful.

In the meantime I've been using an image match (as you have already tried). There are ways to make the matching of the image to click on more reliable - but even assuming it works it is annoying that your current mouse cursor has to jump up to the top of the screen to achieve this. To solve that bit you can set the gear menu in the mouse mouse Action to restore the mouse to where is was - just in case you had missed that.

image

And one other thing that you might or might not realise is that after clicking on the Highlight Icon you can set each color with a single letter followed by the Return key. So, B for blue or Y for yellow.

Set Highlight Color to Blue.kmmacros (14.4 KB)
Set Highlight Color to Blue

Sometimes the reason these Macros which rely on a Found Image can fail if the Icon changes (i.e. sometime darker when selected). A way to deal with that can be found here (the discussion was about Light and Dark Mode but it works with any changing image.)

2 Likes

^ where have you been all my life?????

3 nuggets in 1! Legend!

2 Likes