Export iTunes playlist songs to an external location (SD Card)
The majority of the time I use my iPhone to play music in my car via USB or Bluetooth. Recently I decided to utilize the SD card slot as well and fill one with MP3s. I soon realized iTunes does not have an easy way of exporting music to an SD card, so I wrote a simple Ruby script to do so.
I created a smart playlist based on my genres and ratings called “Jeep”. I then exported this playlist as plain text via:
I created a Yaml configuration file (config.yml):
I created the following Ruby script to load the config.yml file, parse the exported playlist as plain text, create an export path for each file, and then copy the files to the destination.