I’m trying to set up a custom HTML prompt, but I can’t figure out how to insert the %ExecutingMacro% token. Here’s the JavaScript I have to fill it in. The JS works fine for many other text tokens, but not for this one.
I haven’t had a chance to look in to this, but %ExecutingMacro% and similar tokens are only valid from within a macro action, and probably from the context of the JavaScript, its not technically within that action (the action at that point is waiting on the completion of the window, but the prompt window itself is running independently).
So you probably have to save the token to a variable first, then do the Custom HTML Prompt, and then read the value of the variable instead.