2

My spotify script does not execute since I ran brew update. Now my current Spotify or iTunes song doesn't render on my Tmux status bar.

I tried outputting a string and the script gives me text back so I do not think it's Osascript. I'm on Yosemite 10.10.2 and using iTerm. Any idea why this suddenly stopped working?

andy4thehuynh
  • 2,042
  • 3
  • 27
  • 37

1 Answers1

2

Try wrapping the call to osascript with reattach-to-user-namespace. There are some known problems with evaluating certain AppleScript command inside tmux.

You can install the wrapper through Homebrew and use it like this:

reattach-to-user-namespace osascript -e 'display notification "Hello, world"'

Without reattach-to-user-namespace that command will not display a notification in tmux 2.0.

mmwtsn
  • 111
  • 2