I commonly have to use move and click Image command and like to save the images I used in ~/Keyboard\ Maestro/Images folder.
Typically I make a screenshot of the part of the screen with the image, save it, change the file name to be easily identifiable one, move the png file to the KM/Images folder, open the new Move and Click on Image in the file action and the add the image to the path within an action.
Since I am doing this so often, I thought to create a macro, but wonder if there is shortcut available already, or perhaps someone created a macro for this purpose, similar to pretty amazing Custom Icon Manager by @noisneil .
I'd like to know which image editor you are using that doesn't change the DPI of screenshots. Most of the apps I've used to edit images change the DPI of the image so the edited versions tend to be unusable.
In your first paragraph you said that you take screenshots and save the images. I don't know which application you are using when you are doing that. The only thing I want to know is what is the name of the app you are using to view and edit your screenshots. Most apps that I've tried change the DPI of the image resulting in unusable files for KM's Find Image actions.
@Airy I use screen capture CLI via terminal command or Cmd-Shift-5, Cmd-Shift-3, Cmd-Shift-4, depending on circumstances. Shottr is a nice app if you want extra functions.
Typically if you have a mac with retina resolution, the screenshot dpi should be at 144, if not - 72.
There is glitch in Sonoma (although it was reported on the earlier versions as well) that switches dpi down to 72 on retina macbook. Setting up an option of showing a floating thumbnail solved this for me (option under Cmd-Shift-5. Also shottr bypasses this problem as well.
@noisneil this is truly amazing - I think you should post it as a separate entry as many folks may want to have this macro. I am still trying to figure out the magic of your xml, but it'll take me some time
In order to paste this XML into the Set System Clipboard to Text action, you have to "break" the XML. If you don't, the action will be pasted rather than the XML text. To do this, you can just add some random junk text to the start of the XML like this:
write anything you like here<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">