Mouse Gestures

I need to detect when user moves finger in trackpad: up, down, left, right and maybe even circle. Is there any gesture utility which does all the detection part and then tells AppleScript what user did?

With Applescript addition ExtraSuites, you can get mouse location.

My Example grab the position and add to a list. When finished the repeat it processes movement. Report to a dialog.

property xlist : {}
property ylist : {}
property dlist : {}
property repeattimes : 100
property SlowBy : 0.2

tell application "Extra Suites"
	repeat repeattimes times
		delay SlowBy
		set {x, y} to ES mouse location
		set {xlist, ylist} to {xlist & x, ylist & y}
	end repeat
end tell

repeat with i from 1 to (repeattimes - 1)
	if item (i + 1) of xlist > item i of xlist then
		set H to "Right"
	else if item (i + 1) of xlist = item i of xlist then
		set H to "Still"
	else
		set H to "Left"
	end if
	if item (i + 1) of ylist > item i of ylist then
		set V to "Up"
	else if item (i + 1) of ylist = item i of ylist then
		set V to "Still"
	else
		set V to "Down"
	end if
	set dlist to dlist & (H & " and " & V)
end repeat

You could processes as you go. Not sure what you are up to so anymore questions just ask.