I recently Downloaded (Few days ago) "dBpoweramp reference" for evaluation.
I want to write some scripts to clean up the tags on parts of my mp3 collection.
Every time I run the script below I get an error.
C:\script\ListTags.vbs(11,2)
Microsoft VBScript runtime error: Type mismatch: 'dMC.ReadIDTag'
This refers to the call to:
Call dMC.ReadIDTag(TheFile, i, Element, TheValue)
Intellisense picks up the call and parameters correctly, it just wont execute.
If I comment out the previous line: Call dMC.WriteIDTag(TheFile,"Comment", "Tested Again")
this works fine and the tag is changed as expected.
' Test Script
Set dMC = CreateObject("dMCScripting.Converter")
Set WshShell = CreateObject("WScript.Shell")
Dim Element, TheValue
TheFile = "C:\Test.mp3"
' Read All IDTags
For i = 0 To 10000
' Call dMC.WriteIDTag(TheFile,"Comment", "Tested Again")
Call dMC.ReadIDTag(TheFile, i, Element, TheValue)
If Element = "" Then Exit For
Call WshShell.echo(Element,"=" , Value, 0)
Next
Any suggestions what is going wrong???
I want to write some scripts to clean up the tags on parts of my mp3 collection.
Every time I run the script below I get an error.
C:\script\ListTags.vbs(11,2)
Microsoft VBScript runtime error: Type mismatch: 'dMC.ReadIDTag'
This refers to the call to:
Call dMC.ReadIDTag(TheFile, i, Element, TheValue)
Intellisense picks up the call and parameters correctly, it just wont execute.
If I comment out the previous line: Call dMC.WriteIDTag(TheFile,"Comment", "Tested Again")
this works fine and the tag is changed as expected.
' Test Script
Set dMC = CreateObject("dMCScripting.Converter")
Set WshShell = CreateObject("WScript.Shell")
Dim Element, TheValue
TheFile = "C:\Test.mp3"
' Read All IDTags
For i = 0 To 10000
' Call dMC.WriteIDTag(TheFile,"Comment", "Tested Again")
Call dMC.ReadIDTag(TheFile, i, Element, TheValue)
If Element = "" Then Exit For
Call WshShell.echo(Element,"=" , Value, 0)
Next
Any suggestions what is going wrong???
Comment