How do you use arrows in press any key?


#1

After reading Netflix control it doesn’t seem like it’s possible.

I wanted to control Deckset a presentation tool that has arrows for left and right slide control. I ended up with the following apple script, but it’s a bit slower than I’d expect. Probably because it has to use the command line apple script for every press.

Play

#!/usr/bin/osascript
tell application "System Events"
  keystroke "p" using {option down, command down}
end

Stop

#!/usr/bin/osascript
tell application "System Events"
      key code 53
end tell

Right

#!/usr/bin/osascript
tell application "System Events"
    key code 124
end

Left

#!/usr/bin/osascript

tell application "System Events"
    key code 123
end