<?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: Call another script without hard coding in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Call-another-script-without-hard-coding/m-p/771818#M95235</link>
    <description>&lt;P&gt;If you make all of your scripts part of an addin, you can use syntax like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;include("$ADDIN_HOME(com.cmpny.dept.myapp)\My Favorite Script.jsl");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You would define your addin with the alias &lt;STRONG&gt;com.cmpny.dept.myapp&lt;/STRONG&gt;.&amp;nbsp; Here's a sample addin.def file that defines it:&lt;/P&gt;
&lt;PRE&gt;id=com.cmpny.dept.myapp
name="My great application"
host=Win
home="M:\mydept\myapp\Addin"&lt;/PRE&gt;
&lt;P&gt;This addin is located in a fileshare mapped as the M drive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 20:16:06 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2024-07-09T20:16:06Z</dc:date>
    <item>
      <title>Call another script without hard coding</title>
      <link>https://community.jmp.com/t5/Discussions/Call-another-script-without-hard-coding/m-p/771783#M95233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was using Include() function to call other scripts from the main script, since the argument inside Include() is the hard coded script file path, my scripts won't be able to run on other people's laptops, is there any way to not hard code the argument?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 18:37:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Call-another-script-without-hard-coding/m-p/771783#M95233</guid>
      <dc:creator>ARETI052</dc:creator>
      <dc:date>2024-07-09T18:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Call another script without hard coding</title>
      <link>https://community.jmp.com/t5/Discussions/Call-another-script-without-hard-coding/m-p/771799#M95234</link>
      <description>&lt;P&gt;Where is the main file located? Where are the other files located? If you are in same folder you can just use Include("filename.jsl").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 18:49:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Call-another-script-without-hard-coding/m-p/771799#M95234</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-09T18:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Call another script without hard coding</title>
      <link>https://community.jmp.com/t5/Discussions/Call-another-script-without-hard-coding/m-p/771818#M95235</link>
      <description>&lt;P&gt;If you make all of your scripts part of an addin, you can use syntax like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;include("$ADDIN_HOME(com.cmpny.dept.myapp)\My Favorite Script.jsl");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You would define your addin with the alias &lt;STRONG&gt;com.cmpny.dept.myapp&lt;/STRONG&gt;.&amp;nbsp; Here's a sample addin.def file that defines it:&lt;/P&gt;
&lt;PRE&gt;id=com.cmpny.dept.myapp
name="My great application"
host=Win
home="M:\mydept\myapp\Addin"&lt;/PRE&gt;
&lt;P&gt;This addin is located in a fileshare mapped as the M drive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 20:16:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Call-another-script-without-hard-coding/m-p/771818#M95235</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2024-07-09T20:16:06Z</dc:date>
    </item>
  </channel>
</rss>

