I was wondering if there was a way to implement some basic scripting logic for an action.
I have a drawing gesture that when I trigger it, I want it to trigger action Move Left a Space if it's on the right space , and trigger Move Right a Space if it's on the left space..
Is it at all possible ?
As a side note - it would be nice to implement Move to last used space action. (If possible)
For such kind of logic. I would suggest to use applescript widget.
It's a bit complicated. You can assign the "Run Apple Script" action and then call various named triggers you defined from that script, however you'd need to determine the current mouse position in the script and then trigger the "named trigger" based on that.
This is an example (old UI, but works the same now) of how to trigger named triggers via Apple Script Toggle mousedown & mouseup
Problem would be how to get the current mouse position in the Apple Script.