cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

Are there any other ways to create a new script in the JMP table?

I think it will have /*...*/ The content of cannot be written
For example, the script is like this

Include("C:\gr.jsl");
/*
dz=Open("C:\gr.jsl",Charset("gb2312"),Add to Recent Files(0));
*/

I use

dt=Open("$SAMPLE_DATA/Big Class.jmp");
Eval(Parse("dt<<new script(\!"test\!", Include(\!"C:\gr.jsl\!");   );"))Thanks Experts!
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

dt << New Script("A",
JSL Quote(Include("C:\gr.jsl");
/*
dz=Open("C:\gr.jsl",Charset("gb2312"),Add to Recent Files(0));
*/),
As String(1)
);

jthi_0-1750070036053.png

 

-Jarmo

View solution in original post

7 REPLIES 7
jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

Which script are you trying to create? Do you wish to keep the comments? How to automatically write code containing /**/ to JSL? ?

-Jarmo
lala
Level IX

Re: Are there any other ways to create a new script in the JMP table?

no word
2025-06-16_13-15-20.png

jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

I'm still not sure what you are trying to achieve here

-Jarmo
lala
Level IX

Re: Are there any other ways to create a new script in the JMP table?

I need to directly generate the content of such a script in the table using a script.

Thanks Experts!

2025-06-16_13-30-37.png

jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

dt << New Script("A",
JSL Quote(Include("C:\gr.jsl");
/*
dz=Open("C:\gr.jsl",Charset("gb2312"),Add to Recent Files(0));
*/),
As String(1)
);

jthi_0-1750070036053.png

 

-Jarmo
hogi
Level XIII

Re: Are there any other ways to create a new script in the JMP table?

Hi @jthi , do you remember where you found the as string (1) option.
super helpful! should be added to the scripting index - or made easier to finde if it is already there ...

jthi
Super User

Re: Are there any other ways to create a new script in the JMP table?

From script JMP creates when you use "Copy Table Script"

-Jarmo

Recommended Articles