cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
UersK
Level III

How to run JS scripts in JSL of JMP software?windows OS

  • Do  need to load a plug-in?

  • Thanks!

 

2023-04-26_20-04-26.png

3 REPLIES 3
Craige_Hales
Super User

Re: How to run JS scripts in JSL of JMP software?windows OS

  • JavaScript usually runs in a browser, much like JSL runs in JMP. Neither one is a general purpose language for making programs that run outside of their intended environment.
  • You might be able to use node.js in place of a browser. There do not seem to be any other actively maintained projects to make JavaScript available outside of a browser. I've not used node.js.
  • I have used Selenium, via Python, to operate a browser.
  • The best JavaScript documentation is mozilla  and you might be able to translate short functions to JSL easier than using a browser+selenium+python or node.js+RunProgram(?).

Please post back if you find a better answer.

Craige

Re: How to run JS scripts in JSL of JMP software?windows OS

I'm thinking that ChatGPT is confusing ".js" with ".jsl" here. What it's describing would work with JSL code, but not Javascript.

 

In addition to Craige's response, you might be able to use the JSL command Run Program() in conjunction with node.js to get something to work.

Jed_Campbell_0-1682522228189.png

 

UersK
Level III

Re: How to run JS scripts in JSL of JMP software?windows OS

I see, can only use other methods to run JS.

I ended up using AutoHotkey to run JS and copy the result to the paste board.

JSL gets the result from the paste board.

 

Thanks Experts!

2023-04-27_17-27-16.png

Recommended Articles