Hi,
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?
Thanks!
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").
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").
If you make all of your scripts part of an addin, you can use syntax like this:
include("$ADDIN_HOME(com.cmpny.dept.myapp)\My Favorite Script.jsl");
You would define your addin with the alias com.cmpny.dept.myapp. Here's a sample addin.def file that defines it:
id=com.cmpny.dept.myapp name="My great application" host=Win home="M:\mydept\myapp\Addin"
This addin is located in a fileshare mapped as the M drive.