Results 1 to 2 of 2

Thread: [RESOLVED] iTunes COM Problem - VB6

  1. #1
    Junior Member
    Join Date
    Oct 06
    Posts
    30

    Resolved [RESOLVED] iTunes COM Problem - VB6

    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
    OHYEAH_456
    The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.
    Nathaniel Borenstein (1957 - )

  2. #2
    Addicted Member
    Join Date
    Dec 09
    Posts
    197

    Re: [RESOLVED] iTunes COM Problem - VB6

    Quote Originally Posted by oh_yeah456 View Post
    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.

    ......

    Thanks
    dear sir, did you find a way to get the track/music full path/location (with file name)

    can you share with me?

    best regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •