Run jsl script from vbs<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Hello
I woud like to run a script "run.jsl" from vbs. I tried something like:
Dim objJMP
Dim objJSL
Dim strfileName
strfileName = "D:\JMP\run.jsl"
Set objJMP = CreateObject("JMP.Application")
Set objJSL = objJMP.OpenDocument(strfileName)
objJMP.Visible = True
objJMP.RunCommand("run.jsl")
objJMP.Quit
But doens't work
Any idea?
Thanks
Re: Run jsl script from vbsOk I found the solution.
add
//! first line of the jsl script, so it will run automaticaly when you open the file
then the vbs below works ok
Dim objJMP
Dim objJSL
Dim strfileName
strfileName = "D:\JMP\run.jsl"
Set objJMP = CreateObject("JMP.Application")
Set objJSL = objJMP.OpenDocument(strfileName)
objJMP.Visible = True
objJMP.Quit