KM10 Feature Review: What Macros Execute This Macro?

Thanks @DanThomas for this post. A shout out to you and your macros that did this before this was here and still works even better.

Another helpful post here for opening a referenced macro in a new window.

Open Referenced Macro in New Window
use AppleScript version "2.4" -- Yosemite (10.10) or later
use framework "Foundation"
use scripting additions

tell application id "com.stairways.keyboardmaestro.editor"
  if (count of (selection as list)) = 0 then return -- "Nothing is selected"
  set selection1 to item 1 of (selection as list)
  if class of selection1 ≠ action then return -- "The first selection is not an action"
  set dict to (current application's NSString's stringWithString:(xml of selection1))'s propertyList()
end tell

set MacroUID to ((dict's objectsForKeys:{"MacroUID"} notFoundMarker:"not found")'s firstObject()) as text
if MacroUID = "not found" then return -- "The selected action is not an ExecuteMacro action"


tell application "Keyboard Maestro Engine" to do script "<dict>
    <key>KeyCode</key>
    <integer>45</integer>
    <key>MacroActionType</key>
    <string>SimulateKeystroke</string>
    <key>Modifiers</key>
    <integer>4352</integer>
    <key>ReleaseAll</key>
    <false/>
    <key>TargetApplication</key>
    <dict>
      <key>BundleIdentifier</key>
      <string>com.stairways.keyboardmaestro.editor</string>
      <key>Name</key>
      <string>Keyboard Maestro</string>
      <key>NewFile</key>
      <string>/Applications/Keyboard Maestro.app</string>
    </dict>
    <key>TargetingType</key>
    <string>Specific</string>
  </dict>
"
tell application id "com.stairways.keyboardmaestro.editor"
  set selection to macro id MacroUID
end tell

And here for seeing what referenced macros are not part of the group.

Color Green and Red if External or Back to Default Color (v11.0.3)

Example(s) - Skillet Macros.kmmacros (79 KB)