Yes, generally speaking that's what you need to do. Of course, there are some other things to do, e.g. to add full path and '.htm' extension to the filename, etc., but I think it's pretty clear.
' Iterate through the list and export all songs
Progress.MaxValue = list.count
Dim i, itm
' Declare prevartist in order to check for duplicates in for loop
Dim prevartist
Dim j
j=0
for i=0 to list.count-1
Set itm = list.Item(i)
' Call Artistname and put to file
Dim artistname
artistname = MapXML(itm.ArtistName)
if prevartist<>artistname then
' Body of the table
fout.WriteLine "<tr><td align=center class=dark>"&i+1&"</TD><td align=Center style='border-bottom-width:0px'><a href='http://www."&artistname&".htm'>"&artistname&"</a></td>"
' Create the output file
'Dim ArtistHtml
'artistnameHTML = artistname
'Set ArtistHtml = fso.CreateTextFile( artistnameHTML)
' artistnameHTML.WriteLine "<html>"
' artistnameHTML.WriteLine ""&artistname&""
end if
prevartist=artistname
Progress.Value = i+1
if Progress.Terminate then
Exit For
end if
next
artistfile = ""&savedir&""&artistname&".htm"
Set fsoartist = CreateObject("Scripting.FileSystemObject")
Set foutartist = fsoartist.CreateTextFile( artistfile, True)
This is just a part of the script I am forever working on... I didn't know this before and with enough tinkering I found out that I can create files to write to using the above code.
Now... does anyone know how to create folders in VBS?
Use fso.CreateFolder for this. I would recommend you to download scripting help from http://www.microsoft.com/scripting, you'll find many answers to your questions there.
In the main window of MM (where you select tracks) there is a bar that has stuff like "album|track|artist|bitrate" and much more. I have discovered that if you right click on the bar you can select/deselect more sorting columns. One in paticular that I have started using is the "AlbumArtist" tab. I have these settings:
Artist = Artist or group that is actually performing
Album= Name of album
AlbumArtist= the core artist that I sort by
For example....
AlbumArtist = Dave Matthews
Artist = Dave Matthews Band
Album = Remember Two Things
Since Dave has his self titled CD's and some with other guests like Tim Reynolds, It's easier for me to sort.
Now it seems to me that the names or functions of these tabs (AlbumArtist and Artist) should be swapped, just for making more since.
I also warn you to becareful to only change the AlbumArtist if you like this idea. It seems that if you edit the Artist, then the AlbumArtist mirrors the change.
I believe what I have said, to be essentially correct.
On another note can anyone tell me what the itm.? is for the AlbumArtist tag in MM for scripting purposes? I'm having a hard time finding it...
Thanks
I need to know what MM calls the AlbumArtist so I can access it in scripting. Maybe I am blind but I can't find it anywhere... I have tried looking at the scripting help reference page but I am still lost...