Re: Working with iTunes API
Maybe u shouldn't use App as its a VB property. :)
Re: Working with iTunes API
Great idea. Thanks. :lol:
Unfourtunately I am still getting the same error.
Re: Working with iTunes API
VB Code:
Call App.ConvertFiles(FileNames)
should this be
VB Code:
Call App.ConvertFiles(FileNames(0))
?? I don't have Itunes so i can't really try it.
Re: Working with iTunes API
I was looking to do the same thing awhile back... i think you have a small task on your hands. From what ive read (and played with) the info you want to save/edit is held in the .DS_Store file stored on the Ipods harddrive. The file is in binary, heres a link to a site with info on how the file is structured, with the offset and size values:
http://ipodlinux.org/ITunesDB
If you search http://www.planet-source-code.com for "iTunes" you file a few examples of pulling the info from the ITunesDB.
_
Re: Working with iTunes API
Andrew G,
In the JScript example I posted they pass the entire array. So that is what I was trying to do. Passing just a string (or an element of an array) still gives me the "Invalid [rocedure call or agument" error.
ACW_Joe,
I think you misunderstood what I was after. I don't want to get the info. I want to simply add a song to iTunes. I want to acheive the same effect as if you drag-n-dropped a song into iTunes. All I need is to add it to the iTunes library. I was thinking convert files would do that.
Re: Working with iTunes API
Ohh.. sorry about that.
I thouhgt you wanted to add the mp3s to your Ipod and by-pass iTunes all togeather.
Re: Working with iTunes API
Can anyone else help on this topic?
Re: Working with iTunes API
Incase anyone is wondering, I figured out how to do the conversion. I couldn't get it to work with multiple files at once, but to do one file at a time use this:
VB Code:
App.LibraryPlaylist.AddFile("Path_here")
Where App is an iTunesLib.iTunesApp object.