<?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: how do you create a new script file from jsl in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/379492#M62944</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Following this discussion, when saving JSL files the result scripts contains the variables names and not their content which changes in a for loop.&lt;/P&gt;&lt;P&gt;Any advise on how to fix this?&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Nir&lt;/P&gt;</description>
    <pubDate>Sat, 24 Apr 2021 17:39:36 GMT</pubDate>
    <dc:creator>Niros</dc:creator>
    <dc:date>2021-04-24T17:39:36Z</dc:date>
    <item>
      <title>how do you create a new script file from jsl</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34740#M20518</link>
      <description />
      <pubDate>Thu, 19 Jan 2017 18:40:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34740#M20518</guid>
      <dc:creator>BrianK</dc:creator>
      <dc:date>2017-01-19T18:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: how do you create a new script file from jsl</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34745#M20521</link>
      <description>&lt;P&gt;You can use Save Text File and use&amp;nbsp;a .jsl extension.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;script = "// here's some JSL\!rShow(\!"Hello, World!\!");";
Save Text File( "$desktop\MyScript.jsl", script );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 19:30:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34745#M20521</guid>
      <dc:creator>Melanie_J_Drake</dc:creator>
      <dc:date>2017-01-19T19:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: how do you create a new script file from jsl</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34747#M20523</link>
      <description>&lt;P&gt;You can also use the JSL Quote function to make creating a string of JSL code a little easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;script = JSL Quote( // here's some JSL
Show("Hello, World!"); );
Save Text File( "$desktop\MyScript.jsl", script );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jan 2017 19:54:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34747#M20523</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2017-01-19T19:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: how do you create a new script file from jsl</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34781#M20545</link>
      <description>&lt;P&gt;You could also use the square-bracket quote mechanism, and then open the result in a script editor window. Note the backslash and the open or close square bracket are not part of the saved text, and the embedded quotes need no escaping.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;filename = Save Text File(
	"$temp/DeleteMe.JSL", 
// this is the opening square-bracket quote
"\[ 
// comment 1
write("these quotes need no special treatment
and the newline works too
"); // comment 2
//comment 3
]\" // this is the closing square-bracket quote
);

editor = Open( filename, "script" ); // "script" might be needed if the extension is missing&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Script Editor Window with contents of file" style="width: 671px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4878i3132BD62C123FF7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="scriptEditor.PNG" alt="Script Editor Window with contents of file" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Script Editor Window with contents of file&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 14:57:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34781#M20545</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-01-20T14:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: how do you create a new script file from jsl</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34801#M20554</link>
      <description>&lt;P&gt;How are you making it so the block string isn't all one color? Mine just looks like this:&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="Capture.PNG" style="width: 411px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4888iD94BDC3E836ED25D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or is that just an artifact of the forum?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 20:02:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34801#M20554</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2017-01-20T20:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: how do you create a new script file from jsl</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34803#M20556</link>
      <description>&lt;P&gt;That's an artifact of the forum. It tries to use syntax coloring, but it doesn't parse JSL perfectly. So what is one string, and hence one color, in JMP confuses the parser here.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 20:07:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/34803#M20556</guid>
      <dc:creator>Melanie_J_Drake</dc:creator>
      <dc:date>2017-01-20T20:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: how do you create a new script file from jsl</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/379492#M62944</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Following this discussion, when saving JSL files the result scripts contains the variables names and not their content which changes in a for loop.&lt;/P&gt;&lt;P&gt;Any advise on how to fix this?&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Nir&lt;/P&gt;</description>
      <pubDate>Sat, 24 Apr 2021 17:39:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/379492#M62944</guid>
      <dc:creator>Niros</dc:creator>
      <dc:date>2021-04-24T17:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: how do you create a new script file from jsl</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/379511#M62946</link>
      <description>&lt;P&gt;There are several ways, and the best probably depends on which of the above methods use. If you need to evaluate variables in a jsl-string I suggest checking out the function &lt;EM&gt;Eval Insert()&lt;/EM&gt;. For jsl code&amp;nbsp;&lt;EM&gt;Eval Expr()&lt;/EM&gt; is very useful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Apr 2021 00:08:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-you-create-a-new-script-file-from-jsl/m-p/379511#M62946</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2021-04-25T00:08:04Z</dc:date>
    </item>
  </channel>
</rss>

