- open KBar Settings
- click Add Button > Invoke Menu Command
- for the command id, enter: "3000" or \"3000* or anything that's not really a number
- click ok
- click toolbar button
--> Unable to execute script at line 1. After Effects error: Unable to call “executeCommand” because of parameter 1. NaN is not an integer.
unsure how you're doing detection of menu command ids, but could there be some filtering/conversion that happens to sanitize it so the user doesn't get an error? sure, this is me trying to stress the code, so hopefully most users won't run into this.