hnarayanan/shpotify

osascript: command not found

yuceltoluyag opened this issue · 2 comments

spotify play The Boy in the Bubble
/home/matter/script/spotify: line 136: osascript: command not found
/home/matter/script/spotify: line 136: [: =: unary operator expected
Connecting to Spotify's API
Searching tracks for: The Boy in the Bubble
play uri: spotify:track:1buYMDRKWawlr7T7SnsJdu
Playing (The Boy in the Bubble Search) -> Spotify URI: spotify:track:1buYMDRKWawlr7T7SnsJdu
/home/matter/script/spotify: line 254: osascript: command not found

From the directory name I'm guessing you're trying to run this on Linux/BSD?

Right now the script only works on Mac since it needs osascript/Applescript to talk to Spotify. Could be an interesting challenge to port this to Linux though...

Edit: I've just found this that could be useful for you - https://gist.github.com/wandernauta/6800547

thank you, I do not want to use the program, it consumes too much RAM memory.