<?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: Open script window with script by JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/362539#M61237</link>
    <description>&lt;P&gt;I would guess that is exactly what was looked for! Scriptbox is missing at least script editor settings (row numbering and embedded log in my case) and some options from toolbars (current data table).&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="jthi_0-1614232567098.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30692iB2B00C61F97FF51A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1614232567098.png" alt="jthi_0-1614232567098.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 05:58:47 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-02-25T05:58:47Z</dc:date>
    <item>
      <title>Open script window with script by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/356745#M60678</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a script by JSL,&lt;/P&gt;&lt;P&gt;that opens a complex script in a script window. The content of that script should be saved in that script and not in an extra file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a way via a temporary file, that is opened after saving the script as a text string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easier way to perform that task?&lt;/P&gt;&lt;P&gt;I was not able to open a script window by "main menu ("Script")" and paste it into etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
temp_jsl_name="$TEMP\temp.jsl";

Assign(
	script_txt,
	"\[Names Default To Here( 1 );
]\"
);
Save Text File( temp_jsl_name , script_txt);

open(temp_jsl_name);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:05:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/356745#M60678</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2023-06-09T22:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Open script window with script by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/356752#M60679</link>
      <description>&lt;P&gt;Saving and opening text file seems to be quite a good solution (you could also delete the file after saving).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is also possible to use Script Box, but it isn't exactly same as Script Window but could work depending on the use case.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
temp_jsl_name="$TEMP\temp.jsl";

Assign(
	script_txt,
	"\[Names Default To Here( 1 );
]\"
);

Script = Script Box(script_txt, "JSL", 300, 100);
New Window("This is a script box", Script);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Feb 2021 16:23:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/356752#M60679</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-02-07T16:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Open script window with script by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/357374#M60748</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the script box () does not fit to my need, but is a nice idea I wasn't aware.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make available several scripts in Add-Ins or in Custom Menus, w/o using before saved files.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 09:45:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/357374#M60748</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2021-02-09T09:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Open script window with script by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/362457#M61230</link>
      <description>&lt;P&gt;I don't think this is actually any different that what jthi provided, but it LOOKS a little different, because when you open a new window with the &amp;lt;&amp;lt; script message, the window is large and honors the preferences you've set (like numbering and embedded log).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By writing the script you want to use within an expr() wrapper, you keep the benefits of all of the color formatting, paren matching, etc. This makes it much easier to write (and if needed, maintain) the script. Then you can use the char(name expr()) combination to convert the script expression to a string, which can be placed into the scriptbox. All that remains is reformatting the script to make it look as you'd expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So again, this isn't really different in philosophy from what jthi proposed, but it might look more like what you were expecting, due to the size of the window? If not, then apologies; I believe I unfortunately may have misunderstood what you're after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

myScript = expr(
	
	names default to here(1);
	
	print("hello, world.")

);

nsw = new window("My script", &amp;lt;&amp;lt;script);

nsw[scriptbox(1)] &amp;lt;&amp;lt; set text ( char( nameexpr( myScript ) ) ) &amp;lt;&amp;lt; Reformat;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 00:17:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/362457#M61230</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-02-25T00:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Open script window with script by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/362539#M61237</link>
      <description>&lt;P&gt;I would guess that is exactly what was looked for! Scriptbox is missing at least script editor settings (row numbering and embedded log in my case) and some options from toolbars (current data table).&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="jthi_0-1614232567098.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30692iB2B00C61F97FF51A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1614232567098.png" alt="jthi_0-1614232567098.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 05:58:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/362539#M61237</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-02-25T05:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Open script window with script by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/532071#M75510</link>
      <description>&lt;P&gt;This might be all you need:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ww = New Window( "Window Title", &amp;lt;&amp;lt; Script, "Names Default To Here( 1 );\!N" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the JMP Documentation Library or the Scripting Guide check out the 'Scripting the Script Editor' section.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 18:42:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-script-window-with-script-by-JSL/m-p/532071#M75510</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2022-08-09T18:42:37Z</dc:date>
    </item>
  </channel>
</rss>

