Basically, I'm trying to visually monitor a lists of folders and whether or not each has files in it, with the ability to click to open the folder.
I thought a KM palette might do the trick, but I can't get all the way there.
I made a palette with actions that each open one of the folders I'm interested in. I am pretty sure I can work something up with script commands and Hazel to show the palette when any of the folders has something in it.
But I can't figure out if there's any way for an action in the palette to hide or appear differently/disabled when that particular folder is empty.
Are you looking for something that continuously indicates the state of these folders or would you like to display a palette on demand that indicates the states?
You can make a Macro that "marks" and "unmarks" another Macro's icon in a Palette with a checkmark.
Basically, in another Group, you would have a Macro that watches one of your folders and runs a check every time a file is added or removed from that folder.
You would need a "watching" Macro for each one of your folders so, it could be a bit of a task to set up. But it is possible.
Here is a video showing the idea with just one folder.
Here is the Macro which opens the folder and this Macro is shown on a Palette. When this Palette item is clicked the folder will open in Finder.
And here is the Macro to check the folder (in a different Group so it doesn't show itself on the Palette). I came up with a way to check if the folder is empty or not using Keyboard Maestro native actions but there might be a better way to do the check.
Oh and one other thing. In order to initially mark or unmark the watched folders you would need to run the "watching" Macro once (using the play button) from the Keyboard Maestro editor (to initially mark or unmark the icon in the Palette). Hope that makes sense!