<?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: Get selected text in Script Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-selected-text-in-Script-Box/m-p/953018#M109977</link>
    <description>&lt;P&gt;Thanks. &amp;nbsp;Alas, this is only in JMP 19 and I only have JMP 18. &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2026 18:58:16 GMT</pubDate>
    <dc:creator>MathStatChem</dc:creator>
    <dc:date>2026-06-09T18:58:16Z</dc:date>
    <item>
      <title>Get selected text in Script Box</title>
      <link>https://community.jmp.com/t5/Discussions/Get-selected-text-in-Script-Box/m-p/952998#M109975</link>
      <description>&lt;P&gt;Does anyone know of a way with JSL to get the text and the line number(s) of selected text in a Script Box with JSL? &amp;nbsp;E.g.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MathStatChem_0-1781029877391.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/106150i5BDB0CBB3FA90668/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MathStatChem_0-1781029877391.png" alt="MathStatChem_0-1781029877391.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want to return "Text 1 , " and {3,4}&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 18:32:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-selected-text-in-Script-Box/m-p/952998#M109975</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2026-06-09T18:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected text in Script Box</title>
      <link>https://community.jmp.com/t5/Discussions/Get-selected-text-in-Script-Box/m-p/953017#M109976</link>
      <description>&lt;P&gt;I think you can do it (in basic cases) with combination of (note that cursor line starts from 0 and selection width can be negative)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; Get Cursor Line;
&amp;lt;&amp;lt; Get Cursor Position;
&amp;lt;&amp;lt; Get Selection Width;
&amp;lt;&amp;lt; Get Line Text;
&amp;lt;&amp;lt; Get Lines;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 18:44:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-selected-text-in-Script-Box/m-p/953017#M109976</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-06-09T18:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected text in Script Box</title>
      <link>https://community.jmp.com/t5/Discussions/Get-selected-text-in-Script-Box/m-p/953018#M109977</link>
      <description>&lt;P&gt;Thanks. &amp;nbsp;Alas, this is only in JMP 19 and I only have JMP 18. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 18:58:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-selected-text-in-Script-Box/m-p/953018#M109977</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2026-06-09T18:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected text in Script Box</title>
      <link>https://community.jmp.com/t5/Discussions/Get-selected-text-in-Script-Box/m-p/953118#M109995</link>
      <description>&lt;P&gt;Yeah, JMP18 is more limited. When I created add-in for JSL Snippets (was "long" before JMP19 released) I had to use workaround in which I inputted specific string into the script box and then I would look for it and replace it with the snippet.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2026 09:53:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-selected-text-in-Script-Box/m-p/953118#M109995</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-06-10T09:53:46Z</dc:date>
    </item>
  </channel>
</rss>

