This is not exactly the same, but look at F-Script: http://www.fscript.org/
It allows you to quickly prototype and experiment. You can also easily connect it to existing applications. For some types of user interface debugging, I was invaluable.
source share