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.

It's definitely a hackers tool -- you'll probably need to go in and tweak the source to get it to work the way you want it, but it might be a helpful starting point for anyone in the same position as I am!

This should run on Mac or Linux with Pyhon >= 2.3.

You can see the command line options by running
droidmusic --help

AttachmentSize
droidmusic.3.53 KB