An interesting questionThis JSL is looped once per minute, and it's set to be saved as a local JSL.
I tried two ways, but the effects are different:
1. In a JMP table, click on its saved script to run (the table has already established a script to run this JSL).
2. Directly open this JSL script file and click the run button to run.
The effect of the first method is that during the loop's waiting period, other JSL cannot be run (I have set event response scripts on some columns of this table).
The second method allows the table's event response scripts to run during the loop waiting period.
Why?
Thanks Experts!
Automation and Scripting回复: An interesting question
C:\TT3.jsl
dt=Current Data Table();
for(k=1,k<=60,k++,
t1=tick seconds();
try(Close(d3,nosave));
t2=tick seconds();tt=t2-t1;if(tt>60,t3=120-tt,t3=60-tt);Wait(t3);
);
dt=Open("$SAMPLE_DATA/Big Class.jmp");
dt=Current Data Table();
:age<<ADD column="" properties=""></ADD>

Re: An interesting questionNot directly answer to your question but have you tried using Schedule() (and JSL Syntax Reference > JSL Messages > Schedule Messages ) instead of a loop?
Re: An interesting questionThanks!
There are no displayed records in the log
Minor issue: From now on, I can run it using the JSL of the local file.
