<?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 Re: Run Task Scheduler without Opening New JMP Instance in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416252#M66549</link>
    <description>&lt;P&gt;A couple of options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Why not just let it open a new instance, then just close it at the end of the JMP Script?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;put `//!` at the beginning of the script and just open it.&amp;nbsp; It should open in your currently registered version of jmp and auto run.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. save the .jsl as a .jrp and it should do the same thing as 2.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I personally prefer non-interactive things like this to do 1 because then I can confirm that JMP closed appropriately in powershell so that I can give better console error messages.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 22:01:49 GMT</pubDate>
    <dc:creator>vince_faller</dc:creator>
    <dc:date>2021-09-07T22:01:49Z</dc:date>
    <item>
      <title>Run Task Scheduler without Opening New JMP Instance</title>
      <link>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416206#M66544</link>
      <description>&lt;P&gt;I'm trying to run a JSL script that updates various data tables every 3-hours by using the Windows Task Scheduler.&amp;nbsp; Unfortunately, each time the JSL is run it opens a new instance of JMP instead of using the existing one that's already open.&amp;nbsp; Is there a trick to completing this task automation without a new instance of JMP being opened each time the Task Scheduler calls the JSL file?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:56:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416206#M66544</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2023-06-09T19:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task Scheduler without Opening New JMP Instance</title>
      <link>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416223#M66547</link>
      <description>&lt;P&gt;You might want to look into the Schedule() function in JMP.&amp;nbsp; It runs in a given JMP session, and reruns the code in the same session.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 19:12:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416223#M66547</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-07T19:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task Scheduler without Opening New JMP Instance</title>
      <link>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416252#M66549</link>
      <description>&lt;P&gt;A couple of options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Why not just let it open a new instance, then just close it at the end of the JMP Script?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;put `//!` at the beginning of the script and just open it.&amp;nbsp; It should open in your currently registered version of jmp and auto run.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. save the .jsl as a .jrp and it should do the same thing as 2.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I personally prefer non-interactive things like this to do 1 because then I can confirm that JMP closed appropriately in powershell so that I can give better console error messages.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 22:01:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416252#M66549</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2021-09-07T22:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task Scheduler without Opening New JMP Instance</title>
      <link>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416446#M66574</link>
      <description>&lt;P&gt;I'll take a peek Jim and see if this works better than the Task Scheduler.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 17:47:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416446#M66574</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2021-09-08T17:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task Scheduler without Opening New JMP Instance</title>
      <link>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416450#M66576</link>
      <description>&lt;P&gt;I want the process run in the existing instance so that I can periodically plot/evaluate recently collected data without having to open JMP each time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had been using Option 2 already, but it and Option 3, always open a new instance of JMP rather than executing within the already open instance.&amp;nbsp; If you run the following script multiple times does it run within the current instance of JMP or does it also open a new instance for each execution? Curious if you get a different behavior than me.&lt;/P&gt;&lt;P&gt;//!&lt;/P&gt;&lt;P&gt;Clear Log();&lt;/P&gt;&lt;P&gt;Print ("Hello World");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 17:57:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416450#M66576</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2021-09-08T17:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task Scheduler without Opening New JMP Instance</title>
      <link>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416503#M66579</link>
      <description>&lt;P&gt;Oh that's likely because your registry got messed up. Cause it runs great for me.&amp;nbsp; Does it do that even if you open a JMP data table?&amp;nbsp; On Windows?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Why-does-JMP-10-create-a-new-instance-of-JMP-when-opening-a-data/m-p/7188/highlight/true#M7182" target="_self"&gt;Answer Stolen from here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I believe you can correct this with the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Exit out of all JMP sessions that are running&lt;/LI&gt;
&lt;LI&gt;Run the JMP version you wish to use as the default JMP version (if you happen to have multiple JMP versions installed on your machine)&lt;/LI&gt;
&lt;LI&gt;Go to File--&amp;gt;Preferences--&amp;gt;Windows Specific, then click on the Reset Associations button near the bottom of the dialog window&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That should fix the Windows Registry to associate the current JMP session with JMP files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now try double clicking on your files and see if it behaves as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that fixes it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Jeff&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 08 Sep 2021 19:20:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416503#M66579</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2021-09-08T19:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task Scheduler without Opening New JMP Instance</title>
      <link>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416654#M66582</link>
      <description>&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestions.&amp;nbsp; Unfortunately, the recommended steps didn't correct the issue.&amp;nbsp; Interestingly, another machine of mine that's running JMP and JMP Pro doesn't have the same issue.&amp;nbsp; On the machine where the problem is now occurring (I recently updated from JMP 15 to 16) I tried the steps you provided and I still have the same issue where multiple instances are opened with each double click on a JSL file.&amp;nbsp; I've gone as far as uninstalling all JMP versions, rebooting the computer and reinstalling to just JMP 16, but continue to have a new instance of JMP open with each launch of a JSL file (running Hello World script shown above as well as another script that opens a data table).&amp;nbsp; Any further ideas on how to resolve this?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 22:56:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416654#M66582</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2021-09-08T22:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task Scheduler without Opening New JMP Instance</title>
      <link>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416924#M66600</link>
      <description>&lt;P&gt;An additional option is to separate getting data from visualizing it.&amp;nbsp; Let task scheduler script open a new copy of JMP each time and update a data table on your computer somewhere. Then in your 'interactive' copy of JMP include a script to periodically refresh from the file saved by the other script.&amp;nbsp; This tends to give a better user experience because any delays in the connection to the source data don't result in JMP hanging up or lagging when interacting with a graph.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to getting jsl files to open in the same instance of JMP, I recommend reaching out to JMP Support to resolve that issue.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 16:00:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/416924#M66600</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-09-09T16:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task Scheduler without Opening New JMP Instance</title>
      <link>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/417880#M66703</link>
      <description>&lt;P&gt;Thanks for the intriguing and very useful suggestion.&amp;nbsp; Although I haven't had any issues with the way I've been using the single data file, I definitely see where your suggestion of an "interactive" copy of the data file would have some advantages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the multiple instances of JMP issue, in my case the issue was only resolved when I set file type(s) to open with a specific program through the Windows Control panel and as shown below from Program Note 52261.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="terapin_0-1631567261493.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35762iF63FA3ADEC0A6EFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="terapin_0-1631567261493.png" alt="terapin_0-1631567261493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 21:09:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-Task-Scheduler-without-Opening-New-JMP-Instance/m-p/417880#M66703</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2021-09-13T21:09:22Z</dc:date>
    </item>
  </channel>
</rss>

