Before upgrading Yosemite, I used this Applescript to manage my Spotify.
Everything worked like a charm when I ran /usr/bin/osascript /Users/jdrummond/SpotifyControl.scpt play/pause .
Now that I have upgraded my OSX to Yosemite, I keep getting this when I run the same command:
/Users/jdrummond/SpotifyControl2.scpt:1217:1222: script error: Expected end of line, etc. but found identifier. (-2741)
So, I tried to create a simple Applescript to interact with Spotify:
using terms from application "Spotify" tell application "Spotify" to play end using terms from
But I also get the error message:

What am I doing wrong and how to interact with Spotify on Yosemite? Has anything changed?
source share