Hello, I am trying to automate some of the iTunes control using python. So far I have been able to manage:
- Add tracks to iTunes library - Create Playlist in iTunes - Delete Playlist in iTunes - Add tracks to Playlist I haven't found any help online for: - Renaming a playlist - Rename track info (Track Name, Album name, and artist name) Any kind of pointers or help would be greatly appreciated Example to add tracks to a playlist: import win32com.client iTunes = win32com.client.gencache.EnsureDispatch("iTunes.Application") libraryTracks = iTunes.LibraryPlaylist.Tracks track = libraryTracks.Item(5) print track.Name playlist_1 = iTunes.LibrarySource.Playlists.Item(15) print playlist_1.Name #playlist = win32com.client.CastTo(iTunes.CreatePlaylist('Test'), 'IITUserPlaylist') playlist = win32com.client.CastTo(iTunes.LibrarySource.Playlists.Item(16), 'IITUserPlaylist') playlist.AddTrack(track) -- Riz Hossain Engineering Physics (B.Eng) Software Test Specialist Research In Motion 295 Phillip Street Waterloo, ON N2L 3L3 This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32