Changing attributes on a song

Started by naholt, November 02, 2015, 11:28:58 AM

Previous topic - Next topic

naholt

Good afternoon. i am trying to change the name of an album on a MP3. The script below does change it but i have to run it twice in order to get it to work.  Can you please tell me what i am doing wrong? The script is below.


SoundFile = "C:\02 Lookin' Out My Back Door.mp3"
  oWMP = CreateObject("WMPlayer.OCX")
;CurrentalbumName = objSong.GetItemInfo("Album")
objSong.SetItemInfo("Album", "Chronicle")
objSong = 0
colMediaCollection = 0
oWMP = 0 


Thanks
Nicholas

td

Hard to say since your posted script is very incomplete.  A wild guess but maybe it has something to do with attempting to use the attribute 'Album' since it isn't listed as a supported attribute in the latest MSFT documentation for the control.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade