The problem you describe is something I intentionally programmed against.
After your message, I first looked at my code and saw that it should not be doing what you are experiencing. I then ran the test case you describe: I first had the script create a new playlist (that contained an entire album from one artist and a single song from another). Twiddled my thumbs as the copies proceeded, then checked the newly created .m3u file on the Clip (with Textedit). All songs accounted for.
Then I selected the exact same playlist (actually just left iTunes as with the previous run), and ran the script again. No copying (or twiddling of thumbs) this time. I then again viewed the .m3u file and it was exactly as expected, i.e., all playlist songs included.
So, two possibilities (without knowing more from you):
- I’ve never used smart playlists. Seems unlikely this is the issue, but perhaps there’s something unusual about them such that I need to create one and repeat the experiement.
- When you run this type of playlist transfer with my script, the second time you run the script (say with only the one additional new song added to the original playlist) a .m3u playlist file already exists on your Clip (from the first time you ran it on your playlist). In that case, my script will prompt you (or should) on the second run at the point of asking you about Saving the playlist to the Clip. You must answer that you want to Replace (the other choice is Cancel). I’m wondering if you are answering with Replace.
- I tested this on iTunes 8, (because that’s what I like to use), but have a mirror system I can boot from to test on the latest version (which I do when I make any revisions). If #1 or #2 here do not apply (please try your experiment again on regular, i.e., not smart playlist), let me know, and I will then crank up my mirror and confirm that something weird is not going on with iTunes 9.1 and my script on this issue.
So, again, I looked at my code, and just as I had remembered, I’m coding to avoid repeat copying if the songs in the playlist are already on the Clip, and I also ran the experiment myself. On the otherhand, as I was typing this I looked at my code segment:
if file FileNameOnClip exists then
— copy is not necessary, so just add to the M3U playlist file —
and it has me wondering if the problem might be that my conditional is failing on the lastest version of OSX (as I am running Tiger). Applescript, to the frustration of many, is not always consistent with OSX upgrades. So, guess that might be the problem.
Anyone else out there with later/latest version of OSX having this experience (described by hotdamn)?
BTW, hotdamn, it has not been reported to me previous. Still, I know it’s possible something’s amiss.
Please check for #1 and #2 above and respond, then I’ll know if I need to spend more time with this (getting another user to check it who has a later version of OSX, and trying it myself with a smart playlist on the latest version of iTunes. I’m hoping it’s none of these things, but I will spend the time if I know for certain it’s not something on your end.