pallotron/yubiswitch

AppleScript commands not working from inside tmux on MacOS Sierra

Closed this issue · 1 comments

I use the KeyOn and KeyOff AppleScript commands for some automation and they recently stopped working. I'm on MacOS Sierra, and running zsh, typically inside a tmux.

The error:

→ ~ » osascript -e 'tell application "/Applications/yubiswitch.app" to KeyOn'
51:56: execution error: yubiswitch got an error: Application isn’t running. (-600)
→ ~ » 

The application is running, of course. It works from outside of tmux. What could be going wrong?