Hey Leslie,
See this post:
Automating the Keyboard Maestro Editor
And while you’re there peruse the entire thread.
-Chris
For more information, see the wiki Searching the Forum for Answers section.