Hi, Spoon,
I'm having a slightly different problem.
Running a standalone script containing a reference to the dMCScripting.Converter object runs without problems.
I created a .VBS script named dMC_Test.vbs containing the following code:
Code:
' create shell object
Set WshShell = CreateObject("WScript.Shell")
' Create dMC Object
Set dMC = CreateObject("dMCScripting.Converter")
' Read All IDTags
For i = 0 To 10000
Dim ElementValue
ElementValue = dMC.ReadIDTagElementValue("M:\1_KLAS\ZZ_Verzamel\Pianotrio\Gál, Shostakovich - Piano Trios (Briggs Piano Trio 2018)\01 Piano Trio in E major, Op. 18_ I. Tranquillo ma con moto.flac", i)
If ElementValue = "" Then Exit For
Call WshShell.Popup(ElementValue, , "Read Tag", 0)
Next
And then I ran the following command from the command box:
Code:
Program Files\dBpoweramp>cscript C:\users\hans\dmc_test.vbs
This resulted in a number of pop-ups showing the name and content of all tags in the flac file.
So far so good.
But when I call the following piece of code from a VBS script that I start from within MediaMonkey
Code:
' create shell object
Set WshShell = CreateObject("WScript.Shell")
' Create dMC Object
Set dMC = CreateObject("dMCScripting.Converter")
' Read All IDTags
For i = 0 To 10000
Dim ElementValue
ElementValue = dMC.ReadIDTagElementValue("M:\1_KLAS\ZZ_Verzamel\Pianotrio\Gál, Shostakovich - Piano Trios (Briggs Piano Trio 2018)\01 Piano Trio in E major, Op. 18_ I. Tranquillo ma con moto.flac", i)
If ElementValue = "" Then Exit For
MsgBox ElementValue
Next
I consistently get the error
dMC_error.JPG
Sorry for the Dutch language error message, but translated roughly it says:
ActiveX component can't create the object 'dMCScripting.Converter'
What am I doing wrong, here? Is this maybe a case of 32 vs. 64 bit? Or something completely different?