You can do something like this:
tell application "Keyboard Maestro"
set theMacro to first macro whose selected is true
tell theMacro
tell (actions whose name contains "comment")
set disclosed to false
end tell
end tell
end tell