I don't know if this is possible but this is what I'm trying to achieve. I use a lot of scripts in InDesign. Every time I run a script I have to go to the pannel and double click on the script.
If I can call on a script via a grep style I would have a real time feature that can execute scripts while building.
Please let me know if you have an idea!