#left.scpt
tell application "System Events" to key code 124 using control down#right.scpt
tell application "System Events" to key code 123 using control down#up.scpt
tell application "System Events" to key code 126 using control down#down.scpt
tell application "System Events" to key code 125 using control downFor more event codes: https://apple.stackexchange.com/questions/36943/how-do-i-automate-a-key-press-in-applescript




Select the key which you want to use for performing the gestures.(In my case "Middle Mouse Button")