Hi David,

You can find the iTunes DSK here:

http://developer.apple.com/sdk/itunescomsdk.html

Although my simple playlist code it working, I need to be able to play a track based on either a Persistent ID or name, artist, album passed. And I need to not only create a playlist but add some tracks to the playlist by passing some track details.

Does anyone know what type of dim I would use to code using these OLE variables?

Eg

var     mainLibrary = iTunesApp.LibraryPlaylist;
var     tracks = mainLibrary.Tracks;
var     currTrack = tracks.Item(numTracks);

So in the 3 examples above, how could I convert those to RB?

Thanks


Jeff

On 27/10/2006, at 12:36 PM, David DelMonte wrote:

Along the same line, I'm looking for some code that would allow me to change the encoding of specific tracks. Specifically, I have some tracks that are MacRoman and need to be converted to ISOLatinGreek.

David


ps. As a newbie, where do you find the iTunes SDK?


On Oct 26, 2006, at 9:56 PM, Jeff Ayling wrote:


On 27/10/2006, at 11:57 AM, Brad Rhine wrote:

On Oct 26, 2006, at 9:42 PM, Jeff Ayling wrote:

I need to control iTunes on Windows. Has anyone used the iTunes Windows SDK via RB?

Here is a simple example of how to create a playlist on Windows. Does anyone know how I may be able to execute this code on Windows via RB? Or Convert this code somehow so that it will run from within RB?

This code works to get the currently playing track. I haven't messed around with creating playlists, but maybe this will point you in the right direction?

Dim iTunes as new OLEObject("iTunes.Application")
TheString="Currently listening to: "+EndOfLine
TheString=TheString+iTunes.CurrentTrack.Name+" by "
TheString=TheString+iTunes.CurrentTrack.Artist



Hey thanks Brad, that looks great.

Should this work 'out of the box' or will I need to add the Windows COM object files to my project?

Thanks


Jeff
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to