<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How can use JSL to stop the other JSL that is currently running and execute this new JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-use-JSL-to-stop-the-other-JSL-that-is-currently-running/m-p/681178#M86675</link>
    <description>&lt;P&gt;For example, the previous code has been run in a aaa.JSL, it has a long wait&lt;/P&gt;&lt;P&gt;aaa&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Big Class.jmp");
Wait(100);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now run a new JSL:bbb.jsl, how can it stop running aaa.jsl&lt;/P&gt;&lt;P&gt;bbb&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Close  Script("aaa");//??

Close(dt,nosave);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 06:41:57 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2023-09-26T06:41:57Z</dc:date>
    <item>
      <title>How can use JSL to stop the other JSL that is currently running and execute this new JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-use-JSL-to-stop-the-other-JSL-that-is-currently-running/m-p/681178#M86675</link>
      <description>&lt;P&gt;For example, the previous code has been run in a aaa.JSL, it has a long wait&lt;/P&gt;&lt;P&gt;aaa&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Big Class.jmp");
Wait(100);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now run a new JSL:bbb.jsl, how can it stop running aaa.jsl&lt;/P&gt;&lt;P&gt;bbb&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Close  Script("aaa");//??

Close(dt,nosave);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 06:41:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-use-JSL-to-stop-the-other-JSL-that-is-currently-running/m-p/681178#M86675</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-09-26T06:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can use JSL to stop the other JSL that is currently running and execute this new JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-use-JSL-to-stop-the-other-JSL-that-is-currently-running/m-p/681296#M86687</link>
      <description>&lt;P&gt;You can do it by putting in a check that tests to see if a .txt file has changed.&amp;nbsp; In your second instance of JMP, you can run a simple script that changes the .txt file.&lt;/P&gt;
&lt;P&gt;First script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

Save Text File( "$TEMP/flag.txt", "0", replace );

For( i = 1, i &amp;lt;= 100, i++,
	If( Load Text File( "$TEMP/flag.txt" ) == "0",
		Wait( 1 ),
		Throw()
	)
);
Show( i );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Script for second instance of JMP&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
Save Text File( "$TEMP/flag.txt", "1", replace );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Sep 2023 15:39:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-use-JSL-to-stop-the-other-JSL-that-is-currently-running/m-p/681296#M86687</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-26T15:39:39Z</dc:date>
    </item>
  </channel>
</rss>

