The %ExecutingInstances% token returns (v9.0+) a command-separated list of opaque IDs of the currently executing instance. It can be used to retrieve Local and Instance variables via AppleScript and to cancel the specific macro instances.