[python-win32] iTunes COM using Python win32

2011-03-24 Thread Adrien LINA
Hello, I came across the same problem as you. I googled my problem and i found the answer, when you create a playlist, it is 'only' an IITPlaylist. In opposition with the IITUserPlaylist, you are unable to use the method "Addtrack(the_track)". This is why you need to 'populate' it, using the insta

Re: [python-win32] iTunes COM using Python win32

2007-02-01 Thread James Matthews
t, and it should then happen everywhere you run it. HTH, Mark -Original Message- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] Behalf Of *Alden Lavizzo *Sent:* Friday, 2 February 2007 6:43 AM *To:* python-win32@python.org *Subject:* [python-win32] iTunes COM using Python win32 Hi

Re: [python-win32] iTunes COM using Python win32

2007-02-01 Thread Mark Hammond
PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alden Lavizzo Sent: Friday, 2 February 2007 6:43 AM To: python-win32@python.org Subject: [python-win32] iTunes COM using Python win32 Hi, The following code works perfectly well on one of my machines, but gives me an error on another:

[python-win32] iTunes COM using Python win32

2007-02-01 Thread Alden Lavizzo
Hi, The following code works perfectly well on one of my machines, but gives me an error on another: iTunesApp = WScript.CreateObject("iTunes.Application"); pl = iTunesApp.LibraryPlaylist tracks = pl.Tracks myTrack = tracks[0] myNewList = iTunesApp.CreatePlaylist("My New List") myNewList.AddTrack(