Help writing or finding an Entourage applescript..

Hello all!

 I am brand-new to this BBS and have a question about writing an applescript for entourage... I would like to write a "re-download" program to download my hotmail messages after an error window comes up saying that the HTTP server is too busy to fill my request..

 All it would have to do is give the command-W and command-L keystrokes whenever the error window appeared when I am downloading from hotmail. It seems they are having problems over there and the only way to get my messages is to "keep trying". Please let me in on any useful tips you might have!