python

Mac utility for copying music

I've got a Motorola Droid and a Mac and two problems.
1.) The Droid doesn't natively sync with iTunes
2.) My music collection is larger than the SD card on my Droid

I wrote up this little Python script that you give a source directory, target directory, and maximum size and it randomly selects audio files from the source directory, sets up a temporary file tree, then uses rsync to copy the files to the target directory. My goal was to make it as easy and quick as possible to grab a chunk of my music collection, put it on my phone, and "mix it up" occasionally.

Syndicate content