Work Progresses on my iTunes software

Wednesday, 14th January 2009

A couple of days ago i told you all about JustSkip, my first iTunes tool and since then my working focus has been changed. Necessity being the mother of invention i unexpectedly developed the need for something new.A couple of days ago i told you all about JustSkip, my first iTunes tool and since then my working focus has been changed. Necessity being the mother of invention i unexpectedly developed the need for something new.

A way too change iTunes date added field. As anyone who's moved their library or had too re-add songs into iTunes knows this can be a useful field for smart playlists, but from all my reading online it is an inherently difficult field to change, being read only as it is. I’ve read about one way, by editing the iTunes XML file and emptying the iTunes library database file, but to be honest this seemed a complete and slow method and for more complex than the situation should call for.

The software I’ve got in mind will ether read the date purchased information (present in all tracks bought threw the iTunes store DRM or DRM-free) or read the a date from the composer field. Once its got a target date it’ll collect all the track information; location, play count, skip count, last played, last skipped, rating etc... remove the files from iTunes change the system time add the file then change time back.

The two problems I'm coming across so far are Java has no way to change the system time so I'm looking in to using some native library code. The second problem is windows user rights. Only the administrator can change the time, so unless there's a way to change this behaviour both iTunes and the Java code will need to run as root, something I’d like too avoid if at all possible!