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

2007-02-01 Thread James Matthews
Is it running the same version of itunes? On 2/1/07, Mark Hammond <[EMAIL PROTECTED]> wrote: I'd guess that one box has had makepy run for that type-library, but the other hasn't. Look into using the win32com.client.gencache module to programatically generate makepy support, and it should the

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

2007-02-01 Thread Mark Hammond
I'd guess that one box has had makepy run for that type-library, but the other hasn't. Look into using the win32com.client.gencache module to programatically generate makepy support, and it should then happen everywhere you run it. HTH, Mark -Original Message- From: [EMAIL PROTECTED]

[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(