iTunes file converting script

Hey guys, i have a request for some help here. I’m looking for a script or workflow that would convert my iTunes music library from .m4a, .m4p, .aac, and maybe a few other file formats all to .mp3. The catch is I would like it if the script would also delete the “old” files. If I remember correct, iTunes can convert all of these file formats to .mp3 so it’d be great if the script or workflow would use iTunes to convert the file and then delete the file afterwards. Thanks.

checkout and see if you can customize some script from there.