How to bulk rename itunes files from external data source.
November 12, 2009 3:10 PM
Subscribe
How can I bulk rename files in itunes according to data contained in a separate file?
I have 4000-some .wav files in itunes that are essentially field recordings of people talking. The files are named with a 10 digit unique id number and the date acquired. Example: 1234567890_11122009. In a separate csv file I have the identifying information of the individual with the same unique ID number.
I have rated all 4000 recordings based on quality and want to maintain those ratings, but would like to rename the files to drop the unique ID and instead insert the person's name from the csv file. I.e. 1234567890_11122009 becomes Smith_Mary_123_Fake_Street_Anytown_STATE
Can anyone picture a workflow that would accomplish this mass filename change while still maintaining the ratings?
I use a mac and have a decent understanding of automator, grep, csv files etc, but have no real programming skill. I am willing to convert recordings to a different format (mp3 etc.) if that would help. Any ideas?
posted by jlowen to computers & internet (6 comments total)
2 users marked this as a favorite
-Mass encode everything to AAC within iTunes. (Select all right click encode to AAC)
-Use the Perl module Mac-iTunes-Library to read each distinct title. (you'll have 2 per, one AAC one WAV)
For each title
- Read the rating value for the WAV file
- Use DBD-CSV to pull a record from the CSV by the title
- Use Mac-Itunes-Library to set the desired info from the CSV into the AAC version as well as the earlier read rating.
posted by wongcorgi at 6:06 PM on November 12, 2009