G'day,

I am currently attempting to write a program that needs to interface with the Apple iTunes application. I am using the iTunes COM for Windows SDK (obtainable here - http://developer.apple.com/sdk/itunescomsdk.html ) to program it but i am stuck . (ps. i believe the VB sections in the SDK are written for VB.NET but it isnt too hard to port ive found.

So far I have 2 list boxes. The idea is that the list of playlists is loaded into the first one, then the user selects a playlist and the list of songs that are in that playlist is displayed in the second list box.

So far I have this, which initiates everything and loads the playlist list on start:
Code:
Option Explicit
Dim iTunesApp As New iTunesApp
Dim src As IITSource
Dim playlists As IITPlaylistCollection
Dim pl As IITPlaylist
Dim tr As IITTrack

Private Sub Form_Load()
'Load playlists from every source
For Each src In iTunesApp.Sources
    Set playlists = src.playlists
    
    For Each pl In playlists
            List1.AddItem (pl.Name)
    Next
Next
End Sub
The next part - where you load the songs - is harder. I cannot work out how to specify which exact playlist i want to check the songs for. The only thing i can do is load a list of every song from EVERY playlist.

HELP!!

Thanks