Have you seen "Javascript OSA"? (http://www.latenightsw.com/freeware/JavaScriptOSA/jsStatus.html) - install it, and you can use Javascript for nearly everything you use AppleScript for. Yeay!