Found out that I am able to control Spotify through terminal from here http://www.instructables.com/id/RFID-Controls-for-Spotify-on-OSX-using-hacked-Mir/?ALLSTEPS
for example skipping to the next song, you would type this in the terminal: osascript -e 'tell application "Spotify" to next track'
Just wanted to know if there was a way to create a new playlist on Spotify through the terminal .
Cheers.