Applescript for β€œtell” Spotify to play does not work after upgrading OSX to Yosemite

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:

Error

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

+6
source share
3 answers

This problem was sent by Spotify and will be fixed in the next update for the desktop client (I’m a developer there and I can check that it has been fixed).

+8
source

Currently for me OS X 10.9.5 Spotify 1.0.3.101.gbfa97dfe the following simple script works

 tell application "Spotify" playpause end tell 

I saved it as an application in another to use it with my Microsoft keyboard, so the play / pause button launches a simple application that plays / pauses.

+2
source

Spotify destroyed the possibility of using AppleScript recently with their latest idiotic update. This is not Yosemite, this is Spotify.

0
source

Source: https://habr.com/ru/post/983768/


All Articles