@peternlewis - Consider the following:
tell application "Keyboard Maestro"
selectAction 99999
end tell
If no action for that Action ID exists, here's the error message:
an action ID must be supplied
This led to some frustrating debugging exercises, until I realized that what it really meant was
no actions exist with this action ID
While this isn't actually a bug, per se, it would be nice if you could change the error message. Thanks.
PS: I'm doing things today in KM that remind me that you are, as far as I'm concerned, THE MAN. Just sayin'...