Search code examples
c#itunescom-interopitunes-sdk

How can I use iTunesLib in unattended mode?


I'm making a little app to automate my iPod update. My purpose is sync my iTunes library with my actual one and reencode songs in a lower quality for the iPod.

I use the Interop "iTunesLib" from iTunes.exe and I'm working on C#.

My program works pretty well but I have a big issue with iTunes. If a modal box is opened by iTunes during the process (could be "error while importing song", or just even "a new update is available" at iTunes startup...), then my app is completely stuck and must wait for the user to close the popup.

This is annoying because I expected to run my app at night and the process of reimporting/reencoding takes a while.

Is there any way to either tell iTunes to not pop any message, or to ask it to close an already opened one?


Solution

  • Well, after having this question open for more than a year, the correct answers seems to be: I can't

    However there are several alternative libraries that might be useful.