<?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 Get Path of open script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-Path-of-open-script/m-p/366495#M61621</link>
    <description>&lt;P&gt;I'm wondering if you can get the path of an open script like you can with a data table.&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);
// data tables, cool
dt = open("$SAMPLE_DATA\Big Class.jmp");
show(dt &amp;lt;&amp;lt; Get Path());
// scripts, not so much. 
w = open("$SAMPLE_DATA\..\scripts\bootstrapsample.jsl");
show(w &amp;lt;&amp;lt; Get Path());&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/19176"&gt;@ben_ph&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:07:59 GMT</pubDate>
    <dc:creator>vince_faller</dc:creator>
    <dc:date>2023-06-09T22:07:59Z</dc:date>
    <item>
      <title>Get Path of open script</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Path-of-open-script/m-p/366495#M61621</link>
      <description>&lt;P&gt;I'm wondering if you can get the path of an open script like you can with a data table.&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);
// data tables, cool
dt = open("$SAMPLE_DATA\Big Class.jmp");
show(dt &amp;lt;&amp;lt; Get Path());
// scripts, not so much. 
w = open("$SAMPLE_DATA\..\scripts\bootstrapsample.jsl");
show(w &amp;lt;&amp;lt; Get Path());&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/19176"&gt;@ben_ph&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:07:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Path-of-open-script/m-p/366495#M61621</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2023-06-09T22:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get Path of open script</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Path-of-open-script/m-p/366539#M61628</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2610"&gt;@vince_faller&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this community &lt;A href="https://community.jmp.com/t5/Discussions/JSL-Identify-Path-of-the-Currently-Running-Script/td-p/49539" target="_self"&gt;solution&lt;/A&gt; to be helpful and I think it'll do the trick for you, at least in part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, once the JSL file is open, you can have a line that says Convert File Path(""); and it will show you the current directory. But, I think you need to run it from within the JSL script file. It appears that if you run it from another script window, then it returns the JMP file path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 18:47:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Path-of-open-script/m-p/366539#M61628</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-03-09T18:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Path of open script</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Path-of-open-script/m-p/370757#M62058</link>
      <description>&lt;P&gt;Yeah it needs to be external.&amp;nbsp; This doesn't work for me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 17:30:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Path-of-open-script/m-p/370757#M62058</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2021-03-23T17:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get Path of open script</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Path-of-open-script/m-p/370792#M62065</link>
      <description>&lt;P&gt;Vince,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used include file list() before to get the path of a script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;include file list()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Don't know if this does what you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 19:46:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Path-of-open-script/m-p/370792#M62065</guid>
      <dc:creator>johnmoore</dc:creator>
      <dc:date>2021-03-23T19:46:12Z</dc:date>
    </item>
  </channel>
</rss>

