Building on the output of the synclient program, the Perl code presented here allows you to assign specific application functions to "Three-Finger Swipe," as well as open - and close-pinch gestures.
For example, a program that USES NOS to open a database, count the number of notes in it, and then close it, works whether the database is local or remote.