Scripting error "The file is already being processed."

I just selected a few .wav files and dropped it over the example script “Mp3-64.vbs”

which I copied from original and changed one line:
Call wave.SaveAs(Wscript.Arguments(i), “MP3 FH CBR 320”)
to use my MP3 preset

but then Wavelab 9.5 Pro opens, loads the first .wav file, reports the error window

“The file is already being processed.”

I have to press ok - and then the procedure continues for every .wav file (no chance to stop the whole process).

I run thru a test folder with some .wav files only.

Any idea?

Thanks

@WL programmers:

I added 2 sleep lines to the example script

For i = 0 to WScript.Arguments.Count - 1
	Call wave.Open(Wscript.Arguments(i))
	WScript.Sleep(1000)
	Call wave.SaveAs(Wscript.Arguments(i), "MP3 FH CBR 320")
	Call wave.Close()
	WScript.Sleep(1000)
Next

dropped 20 .wav files over it … and then I get no error message anymore.

Not really what I expect …

How can I avoid the “sleep” lines to run as fast as possible?
And why does it happen?

Maybe only the wavelab programmers could tell?

I’m using Windows 10 64bit Pro - incl. all updates - Intel i7-7700 3.6 Ghz.

Difficult to say. But if you need to convert files, I recommend you to use the Watch Folder feature instead.

Hello !
I’m having the same issue. I use a vbs script to run a Batch Process on a lot of files (thousands) in a batch farm.
WaveLab gets stuck at the end of the process, the UI doesn’t close and i got the message “xxxx.wav is being processed. It cannot be closed now” even though there is no file opened in the window. This is my VB script :

if WScript.Arguments.Count = 0 then
   WScript.Echo "You need params!..."
   WScript.Quit
end if

Dim app
Set app = CreateObject("WaveLabPro9_5.Application")
While app.IsReady() = False
	WScript.Sleep(100)
Wend

REM For i = 0 to WScript.Arguments.Count - 1
  REM WScript.Echo Wscript.Arguments(i)
REM Next

Dim batchProcessor
Set batchProcessor = CreateObject("WaveLabPro9_5.BatchProcess")

Call batchProcessor.ClearFileList()
Call batchProcessor.Open(Wscript.Arguments(0))

Dim i
For i = 1 to WScript.Arguments.Count - 1
    Call batchProcessor.AddFile(Wscript.Arguments(i))
Next

Call batchProcessor.Run(true)
Call batchProcessor.Close()

While app.IsReady() = False
    WScript.Sleep(100)
Wend
app.Quit()

Also, can anyone point me to the Wavelab inner scripting documentation ? I heard we could use javascript inside WaveLab but i can’t find any information on it.