cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
GroupSquareWolf
Level III

Scriptiing- Naming and closing Journals

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