by flint » Sat Oct 01, 2005 10:11 am
Hi
I use the following simple script to copy the artistname to the album artist name.
' A simple script that copies the content of the Artist Name to the Album Artists Name field of selected tracks
Sub CopyArtist2AlbumArtist
' Define variables
Dim list, itm, i, album
' Get list of selected tracks from MediaMonkey
Set list = SDB.SelectedSongList
If list.count=0 Then
Set list = SDB.AllVisibleSongList
End If
Set albums = list.Albums
j=0
' Process all selected tracks
For i=0 To list.count-1
Set itm = list.Item(j)
' Copy the fields
itm.AlbumArtistName = itm.ArtistName
' Update the changes in DB
itm.UpdateDB
Next
End Sub
When I execute the script the album artist name is changed in the MM window. But when I select anohter view and go back. The original name for the album artist is put back. I can change the name using the normal tool options. But I wan't to change my complete db in one time (over 11000 songs).
I read a lot of sugestions. This is what I tried.
Check if the ISDBSongData has a property Album, because if it has not it might be impossible to save the name. But my knowledge of scripts fails or each song has this property.
I would like to have some pointers (small pices of script would be great) to help me on my way.
Thanks
Hi
I use the following simple script to copy the artistname to the album artist name.
' A simple script that copies the content of the Artist Name to the Album Artists Name field of selected tracks
Sub CopyArtist2AlbumArtist
' Define variables
Dim list, itm, i, album
' Get list of selected tracks from MediaMonkey
Set list = SDB.SelectedSongList
If list.count=0 Then
Set list = SDB.AllVisibleSongList
End If
Set albums = list.Albums
j=0
' Process all selected tracks
For i=0 To list.count-1
Set itm = list.Item(j)
' Copy the fields
itm.AlbumArtistName = itm.ArtistName
' Update the changes in DB
itm.UpdateDB
Next
End Sub
When I execute the script the album artist name is changed in the MM window. But when I select anohter view and go back. The original name for the album artist is put back. I can change the name using the normal tool options. But I wan't to change my complete db in one time (over 11000 songs).
I read a lot of sugestions. This is what I tried.
Check if the ISDBSongData has a property Album, because if it has not it might be impossible to save the name. But my knowledge of scripts fails or each song has this property.
I would like to have some pointers (small pices of script would be great) to help me on my way.
Thanks