Hi Laura,
This is the approach that I take. If there’s a better way I’d love to hear about it.
1. I put all of my JSL scripts for an application into a directory on a fileshare that my users have access to. I have a main directory for the application, and then the scripts live inside a directory called "Addin". For example if my application is called ABC_APP, the scripts would be here:
K:\JMP\ABC_App\Addin
2. Create an addin.def file to define your application’s name and location:
id="com.comp.dept.abc_app"
name="ABC Application"
autoload=1
home=" K:\JMP\ABC_Appl\Addin"
For this example the “ID” parameter uses comp for your company abbreviation, and dept for your department abbreviation. The ID parameter is just an arbitrary string; this is the recommended technique to make sure different applications have unique IDs.
3. Launch JMP and open the addin.def file. This will save the addin name and location from session to session.
4. Create a customized menu that points to your addin files. Click on View > Customize > Menus and Toolbars. Within the menu definition you will refer to scripts by their addin ID. Under Action you will have “Run JSL in this file” checked, and “Use add-in home folder” checked. Typical values would be the following:
Run JSL in this file: $ADDIN_HOME(com.comp.dept.abc_app)\My Script.jsl
Use add-in home folder: com.comp.dept.abc_app
5. Copy the customized menu entries from the XML file usercust.jmpcust in the directory C:\Documents and Settings\
\Local Settings\Application Data\SAS\JMP\9 to the addin directory K:\JMP\ABC_Appl\Addin. Name the file addin.jmpcust.
6. Create a zip file containing only addin.def and addin.jmpcust. Rename the zip file MyappAddin.jmpaddin
Now all a user needs to do is (one time only):
1. Make sure they have the K drive mapped appropriately
2. Launch JMP 9 and then double click on MyappAddin.jmpaddin
The nice thing about this approach is that you can change your scripts on the fileshare and the next time your users run a menu option the new script will be run.
It sounds somewhat complicated but once you get used to it it’s not that bad. The menu definition system in JMP 9 is very easy to use.