Apart from the power that such a system would bring, I can think of another really compelling reason to add a standard scripting capability to X11 desktops: testcases. A decent scripting language would make automated GUI app testing very simple. (Not that I know anything about GUI app design...)
Is this even on the radar of the desktop developers?
