Dan, clearly I'm not Chris, but I gave you his solution earlier.
Replace:
tell window "Keyboard Maestro Editor"
With:
tell (first window whose subrole is "AXStandardWindow")
Dan, clearly I'm not Chris, but I gave you his solution earlier.
Replace:
tell window "Keyboard Maestro Editor"
With:
tell (first window whose subrole is "AXStandardWindow")