Hi All, need some help.
I've got 2 laptops which always carried around the house. There is a external hardrive which has all the mp3s. To play music, what we do is connect one of the laptops to the external drive and play the music.
The problem is that if someone puts new mp3s into the library, even though copied onto the external drive, they wont be available on the other laptop because of the Itunes library data file "iTunes 4 Music Library" located in the ~/Music/iTunes/
I sort of have a solution, but its not perfect yet. - This is where i need someones help..please.
At the moments i have set-up cron on one of the machines to do
code:
cp ~/Music/iTunes/iTunes\ Music\ Library.xml /Volumes/work_secondary/Music/
whilst on the other there is also another cron script that does
code:
cp /Volumes/work_secondary/Music/iTunes\ Music\ Library.xml ~/Music/iTunes/
This is fine, but what it means is that the library can be updated only on one machine. The other laptop (when cron runs) will also automatcly only update that list, but you cant import new mp3s.
It works fine for now ...but..:
Does anyone know a shell script that i can set-up in cron that will check for the latest "iTunes 4 Music Library" file modification date and depending on which laptop you are on will automaticly either replace the one on the external drive so the other laptop can pick it up or replace the original file on one laptop as the one on external is newer.
I hope all of this makes sense, but if anyone has better suggestions on how to get around this, it would be much appreciated.
Many Thanx!