If you have scripting enabled, you can do it with Jython. For more information on Jython scripting, you can go to
http://www.westga.edu/~drocco/alice/...ng_basics.html. If you need, I can show you how to close the window once you've enabled scripting.