cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

Scriptiing- Naming and closing Journals

GroupSquareWolf
Level III

Here is a script trying to save a data table in a Journal and then from the Journal the data table is saved into a MS word document. One preference is to run the Journal part in the background. Among the scripts, only the Save MSWord part works

 

To name the Journal:

Set Name is not working.

 

To hide the Journal in the background:

Neither (Invisible) nor Close () is working.

 

Thank you for your help!

 

dt = current datatable ();

dt2 = dt << Journal (invisible);
dt2 << set name ("test1");
dt2 << Save MSWord( "$Desktop/jmp_example.doc" );
 
 close (dt2);
 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User


Re: Scriptiing- Naming and closing Journals

Use commands you can use for windows, << Show Window and << Set Window Title

Names Default To Here(1);

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

dt2 = dt << Journal;
dt2 << Show Window(0);
dt2 << Set Window Title("test1");

dt2 << Save MSWord("$DESKTOP/jmp_example.doc");

dt2 << Close Window;

jthi_0-1671551853358.png

 

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User


Re: Scriptiing- Naming and closing Journals

Use commands you can use for windows, << Show Window and << Set Window Title

Names Default To Here(1);

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

dt2 = dt << Journal;
dt2 << Show Window(0);
dt2 << Set Window Title("test1");

dt2 << Save MSWord("$DESKTOP/jmp_example.doc");

dt2 << Close Window;

jthi_0-1671551853358.png

 

-Jarmo