Supposedly the scripting architecture ("OSAScript", or something?) is language-independent, and you can install other languages to use instead of AppleScript. I haven't actually tried this, though.