this allows me to share Apple Music playlists as text file with other people!
- in Apple Music, open a playlist
- go to File > Library > Export Playlist
- select the M3U format
- save the file a convenient location on your computer
- edit the script to point to the location of the exported M3U file
- run script
- profit