Forum Archive

Create Playlist with Pythonista

CytotoxicTCe11

Does anyone know of a way to create a new playlist on iOS 10 with Pythonista 3? I've been able to tweak the Music_Stats.py example script to make a list of the songs I want to add, but I don't know whether it's possible to programmatically add them to a new playlist. Any thoughts?

omz

It's not possible to create playlists programmatically. From Apple's MPMediaPlaylist documentation (emphasis mine):

Users configure playlists using iTunes on the desktop or by creating an on-the-go playlist on the device. To your iOS application, playlists are read-only.

CytotoxicTCe11

@omz Aw darn - Perhaps I can export the list of songs and use an Automator workflow to assemble the playlist instead. Thank you!