I want a new option to save an image from the clipboard to a file.
That means in the clipboard history view, if there's an image, there should be an option to save it as a file with a name.
This is the only reason Pasty is currently better for this use case — because it has this feature.
Other than that, I really like Keyboard Maestro.
I don't want to create an action. I want the image from the clipboard history, maybe even next to the SEND button.
You can add your own bespoke tasks to that list. In my Clipboard History Switcher list I have an option to Open in the Preview App. In your case you could add an option to save as a file.
As with @Zabobon, I too have a number of things I've added to the clipboard filter list. Here's one that I just wrote to save the selected image in the clipboard history switcher to a file:
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 15.5
Keyboard Maestro v11.0.4
If you just hit Return on the filename dialog, it will be saved to your Downloads folder with a leading timestamp, followed by _Saved from clipboard. You can edit the timestamp and filename, change the default save location, etc. as you wish.
This works by checking the clipboard type of the selected item, and only offering the save option if you've selected an image. The one problem you may run into is having the history switcher appear over the save dialog; a fancier macro could handle that by closing the switcher first, or you could just move it elsewhere onscreen. But hopefully this gets you started.
Here's a start -- if they overlap then the Switcher window will be minimised:
tell application "Keyboard Maestro Engine"
set theDialog to item 1 of (get every window whose name is "Save")
set dialogBounds to bounds of theDialog
set theHistory to item 1 of (get every window whose name is "Clipboard History Switcher")
set historyBounds to bounds of theHistory
if (item 1 of dialogBounds < item 3 of historyBounds and item 3 of dialogBounds > item 1 of historyBounds and item 2 of dialogBounds < item 4 of historyBounds and item 4 of dialogBounds > item 2 of historyBounds) then set miniaturized of theHistory to true
end tell
Glad it's working, but you might want to put the Case conditional back in. As written, yours would save text snippets to files as well as images. That may not be an issue, but it's something to be aware of.
I think only Peter (Keyboard Maestro's author and the site admin) can do anything about the post rate limit on new members.
Here is a simple way to get the Switcher out of the way while the Save dialog is onscreen by putting this Keyboard Maestro Action at the head of your Macro.