I'm running into an unusual problem with a JSL script. I'm trying to automate the production of some reports and export them to HTML for presentation. I am planning to integrate this using automation (C# via RunJSLFile). The problem is that, although the variants of script I've tried (examples below) all work fine when run within JMP, they don't produce the HTML file when run standalone either by double clicking the JSL script file itself or through C#. No error is generated when I check HasRunCommandErrorString so I'm at a loss why it fails to run.
New Window( "Report", vlb = V List Box() ); // Insert several graphs into list box here vlb << Save HTML("C:\report.html"); j = New Window( "Report", <<journal, vlb = V List Box() ); // Insert several graphs into list box here j<< Save HTML("C:\report.html");
I've already looked around at a few other topics and all of them more or less point to the basic format but none of them work running as a standalone script.
This might seem trivial, but most PCs are configured so that you cannot save directly to C:\ .
Try saving to C:\temp\ and see if that still gives an error. You might want to look up the function Is Directory Writable() and Is File Writable().
This still might be a security issue. I think my security is set-up so that an unsigned program cannot write
You might want t look at
If you find a definitive answer/link you shoudl post it. Good Luck
If it is the security problem like those reported at the links I provided, then it is not JMP that is having the problem; it would be your OS or your security software. I have McAfee and when I was working in a corporate environment with lots of security, I had to make JMP a trusted program. That was several years ago.
You might want to contact JMP Help for directly. To test running my program externally ( I do not use C# ) I use wscript.
There are no labels assigned to this post.