Can I delete a song from a spotify playlist with Applescript alone?

I’ll try to make it brief because I’m not a coder, so I don’t really belong here, but I will learn Applescript enough to get this done if it will work.

I think I was overcomplicating it, trying to use webhooks and api and services like ifttt and integromat, trying to pay people, confusing them.

Then I came across a person’s page who used Applescript to delete song from itunes (sorry about not putting it in code form, like I said I don’t know anything about coding).

tell application “iTunes”
if special kind of current playlist is not none then return
set deleteThis to current track
next track
try
delete deleteThis
end try
end tell

then I came across another person’s page who was using applescript to post what he is playing to twitter

tell application “Spotify”
set theTrack to name of the current track
end tell
return theTrack

tell application “Spotify”
set theArtist to the artist of the current track
end tell
return theArtist

tell application “Spotify”
set theID to id of the current track
end tell
return theID

so, those are just examples, that would have to be adapted to my purposes, but will learning Applescript or ApplescriptOjbC alone be enough to manipulate spotify in various ways? If so I will begin learning, thanks.

You can not do this via AppleScript directly.

There are ways to do this via Spotify’s web API.

You’ll have to register for an API Key
And then learn how to POST various URLs
Via PUT, GET etc. and get data back.

If you’re interested I can post some examples.
Also Pyramiou has post replies to my own questions about how to do these postings.

I’ll link to the post if I can find it

The Piyocast website was where I learned how to make calls
Via a NSURLSession. Here’s a link to tagged articles. Just use a
Translator to view site in English.

http://piyocast.com/as/archives/tag/nsurlsession

At the top is his most recent version that is quite
Detailed and may be more than what your looking for.

I would start with the article at the very bottom
As it can introduce you to it in its simplest form:

http://piyocast.com/as/archives/3779