and then get back, tracks that were previously updated now again have old
AlbumArtist data. Is this a bug of sripting system or I'm doing something
wrong? Plese help... I am able to change track properties manually and then
these changes are permanent, but if I do it with this script, changes
disapear... (MediaMonkey 2.4.2.874, WinXP SP2)
Code: Select all
' A simple script that copies the content of Artist
' field into Album Artist of selected tracks
' [CopyAlbumArtistArtist]
' FileName=CopyAlbumArtistArtist.vbs
' ProcName=CopyAlbumArtistArtist
' Order=4
' DisplayName=&Artist => Album Artist
' Description=Copy Artist into Album Artist
' Language=VBScript
' ScriptType=0
Sub CopyAlbumArtistArtist
' Define variables
Dim list, itm, i
' Get list of selected tracks from MediaMonkey
Set list = SDB.SelectedSongList
If list.count=0 Then
Set list = SDB.AllVisibleSongList
End If
' Process all selected tracks
For i=0 To list.count-1
Set itm = list.Item(i)
' copy the fields
itm.AlbumArtistName = itm.ArtistName
' Update the changes in DB
itm.UpdateDB
Next
End Sub