Related to my little iTunes buying spree from yesterday, I’ve been trying to find a good way to keep my purchased iTunes stuff in sync between my PC and my Mac. I’ve been thinking about just using rsync or something, but I haven’t gotten around to playing with that yet.
Instead, I started looking into doing this with AppleScript. That seems like it should be easily doable, but I haven’t been able to get this set up exactly the way I’d like. I started with a “copy files” script found at Doug’s AppleScripts for iTunes page. The script just copies any selected songs in iTunes to a single location. I’ve just been selecting my most-recently purchased stuff in the “Purchased” list, then running this script to copy the files from my Mac to my PC. Then, on the PC, I just drag the files over iTunes, and they get moved into the right directories automatically.
I’ve got two little problems with this script: First, it tends to come back with an error when it’s copying a big video file. Second, it doesn’t provide any feedback while it’s copying (no progress bar or anything like that). I decided to see what I could do about that, and came across this article at MacTech. I managed to use the example from that article to put together a nice app with a progress bar that should do just what the original script did. It compiles OK, but, unfortunately, doesn’t work when I call it from the iTunes script menu. Clearly, I need to do some more reading on AppleScript and figure out how this stuff works. Also, the script uses the same method to do the file copies as the original script, so I’m assuming video file copies will probably error out the same as they did in the old script.