I just solved an interesting xGestures problem someone posed to me: how can they get it so that the tab they gesture over is closed, rather than making a gesture type Command-W, thus closing whichever tab is active? Furthermore, how can they close tabs when Safari is in the background?
To solve it, I wrote an AppleScript that should do exactly that. Maybe someone else will find it interesting. The thing to remember about xGestures is that it can have practically any behavior you want by using AppleScript. The problem is that writing AppleScripts is really only an option for people who are already programmers and have the time and inclination to learn to write them. So I'll keep posting the interesting ones I write.
Here's the script:
This script requires the XTools scripting addition because otherwise there's no way to get the mouse location in an AppleScript. XTools can be downloaded here: http://osaxen.com/files/xtool1.1.html