I know you can do this in Hazel but I like to try to do as many things in KM before getting another tool.
I'd like to watch my Downloads folder for newly added image files and put them in a subfolder called Images. I know you can use "files added to a folder" as a trigger but don't know how to filter it/make a rule so that it only works on image files with .png, .jpg, or .heic extensions...
You're very close to a solution. The solution is an IF statement in the macro that checks the file extension. If it's not the extension(s) that you want, abort the macro, otherwise move them. Give it a try and if you can't solve it, I'll help.
It's okay. Sometimes I give full solutions, sometimes I set a direction. I made the wrong call in this case.
Okay, I wrote it, now I have to test it before I upload it. Okay here it is. Please note that I used my own folder instead of the folder you wanted to use. I trust you can make that change. Also, I noticed that the extension is case sensitive, so most likely you want to include upper case and lower case versions of "JPG" and whatever other extensions you want.
If this doesn't work for you, let me know, I can make more changes.
Move Files from Downloads into ~/Data/Downloads Macro (v10.0.2)
In other words, what you probably have to change is from "~/Data/Downloads" to "~/Downloads/IMAGES" and also change from "JPG|PNG|HEIC" to "JPG|PNG|HEIC|jpg|png|heic" or whatever file extensions you want, both upper and lower case.
There are ways to improve this macro, or to write it differently, but I provide only one solution when I provide solutions.
OOPS, you can delete the DISPLAY TEXT action. I was using that for debugging.
This seems to work fine for one file but I'm trying to figure out why it's getting bugged out on multiple files being added at the same time... Getting this error if more than one image is added to the downloads folder...
The Move action may have failed if it was unable to move the file, such as what would happen if you already have a file by the same name in the destination folder. Did you check if you have duplicate files?
Anything can be fixed, but I didn't anticipate the case of duplicate files, and you didn't indicate what you want to happen when a duplicate filename exists.