<?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: How to enable startup scripts in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229930#M45630</link>
    <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp;has a good idea with an add-in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two things to add here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;An add-in doesn't have to have a user interface or any code other than &lt;A href="https://www.jmp.com/support/help/en/15.0/#page/jmp/compile-scripts-into-an-add-in-using-add-in-buil.shtml#ww510629" target="_self"&gt;code to run at start-up&lt;/A&gt;.&amp;nbsp;In this way you can create an add-in that is only a library of functions.&lt;/LI&gt;
&lt;LI&gt;There's already an example of this kind of add-in, and, while it doesn't do feet to kilometers, it does do feet to miles and miles to kilometers. It's also extendable through simple editing of a data table. Check it out:&amp;nbsp;&lt;LI-MESSAGE title="Conversion Function Library" uid="215939" url="https://community.jmp.com/t5/JMP-Add-Ins/Conversion-Function-Library/m-p/215939#U215939"&gt;&lt;/LI-MESSAGE&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Mon, 21 Oct 2019 21:13:41 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2019-10-21T21:13:41Z</dc:date>
    <item>
      <title>How to enable startup scripts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229726#M45600</link>
      <description>&lt;P&gt;I just created a custom transform script for unit conversions, e.g. ft to km. &amp;nbsp;Pretty cool that JMP lets me do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I'd like those to be enabled every time I run JMP. &amp;nbsp;I searched for "Startup scripts" and similar, but didn't see any mention anywhere of how to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make those custom transforms permanent? &amp;nbsp;Or, how can I have JMP automatically run a .jsl every time I launch it?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 02:46:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229726#M45600</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2019-10-21T02:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable startup scripts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229759#M45604</link>
      <description>&lt;P&gt;The documentation for this is located in the Scripting Guide&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;STRONG&gt;Run a Script at Start Up&lt;/STRONG&gt;&lt;BR /&gt;If you want to run the same script every time you start JMP, name it jmpStart.jsl and place it in&lt;BR /&gt;one of the following folders, as appropriate for your operating system. When JMP starts, JMP&lt;BR /&gt;looks for the jmpStart.jsl script in these folders in the order in which they are listed here. The&lt;BR /&gt;first one that is found is run, and the search immediately stops.&lt;BR /&gt;Note: Some path names in this section refer to the “JMP” folder. On Windows, in JMP Pro, the&lt;BR /&gt;“JMP” folder is named “JMPPro”. In JMP Shrinkwrap, the “JMP” folder is named “JMPSW”.&lt;BR /&gt;On Windows:&lt;BR /&gt;1. C:/Users/&amp;lt;username&amp;gt;/AppData/Roaming/SAS/JMP/14&lt;BR /&gt;2. C:/Users/&amp;lt;username&amp;gt;/AppData/Roaming/SAS/JMP&lt;BR /&gt;On Macintosh:&lt;BR /&gt;1. /Users/&amp;lt;username&amp;gt;/Library/Application Support/JMP/14&lt;BR /&gt;2. /Users/&amp;lt;username&amp;gt;/Library/Application Support/JMP&lt;BR /&gt;The jmpStart.jsl script runs only for a particular user on a computer. You can add a script&lt;BR /&gt;named jmpStartAdmin.jsl in one of the following places, as appropriate for your operating&lt;BR /&gt;system. This script is run for every user on a computer. JMP searches for the administrator&lt;BR /&gt;start-up script first, and runs it if found. Then JMP searches for the user start-up script, and&lt;BR /&gt;runs it if found.&lt;BR /&gt;On Windows:&lt;BR /&gt;1. C:/ProgramData/SAS/JMP/14&lt;BR /&gt;2. C:/ProgramData/SAS/JMP&lt;BR /&gt;On Macintosh:&lt;BR /&gt;1. /Library/Application Support/JMP/14&lt;BR /&gt;2. /Library/Application Support/JMP&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:35:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229759#M45604</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-10-21T10:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable startup scripts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229760#M45605</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12313"&gt;@BHarris&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would create a function (or set of custom functions) and make them an Add-In. You can have the script run at each JMP session start-up. Below is a screenshot of the&amp;nbsp; New Add-In dialog. Then you can use these functions like any JMP function.&lt;/P&gt;
&lt;P&gt;You can create a hot key to initiate the script to run and more. There are multiple methods, what's best depends upon how you paln to use this. For example:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;define a hot key that searches the current data table() for any column with ft as its units, then convert that column and change its units to km.&amp;nbsp; that would be a script&lt;/LI&gt;
&lt;LI&gt;define a custom user function say ::MyConvert(column, from_units_text, to_units_text)&amp;nbsp; e.g. ::MyConvert(:SidewalkLength,"ft", "km").&lt;/LI&gt;
&lt;LI&gt;etc.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select from the JMP&amp;nbsp;&lt;STRONG&gt;Main Menu &amp;gt; Help &amp;gt; Books &amp;gt; Scripting Guide&lt;/STRONG&gt;. For JMP 14, chapter 16, near page 816, look for the documention for creating and managing an Add-In. I recommend you read this first before building one. Note you can specify this can run when JMP starts.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 950px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19785iA54BEF476F6CE72C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:41:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229760#M45605</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-10-21T10:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable startup scripts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229761#M45606</link>
      <description>&lt;P&gt;Oops,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;posted before I completed my reply.&amp;nbsp; Jim provided another option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a heads-up, that some companies have security that look for application (OS) start-up scripts that complain or hinder their use. That is why I typically use the Add-in feature, JMP initaites then runs the Add-Ins that were configured to run at start-up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use what works best for you and your environment.&amp;nbsp; Good luck.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:51:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229761#M45606</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-10-21T10:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable startup scripts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229930#M45630</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp;has a good idea with an add-in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two things to add here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;An add-in doesn't have to have a user interface or any code other than &lt;A href="https://www.jmp.com/support/help/en/15.0/#page/jmp/compile-scripts-into-an-add-in-using-add-in-buil.shtml#ww510629" target="_self"&gt;code to run at start-up&lt;/A&gt;.&amp;nbsp;In this way you can create an add-in that is only a library of functions.&lt;/LI&gt;
&lt;LI&gt;There's already an example of this kind of add-in, and, while it doesn't do feet to kilometers, it does do feet to miles and miles to kilometers. It's also extendable through simple editing of a data table. Check it out:&amp;nbsp;&lt;LI-MESSAGE title="Conversion Function Library" uid="215939" url="https://community.jmp.com/t5/JMP-Add-Ins/Conversion-Function-Library/m-p/215939#U215939"&gt;&lt;/LI-MESSAGE&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 21 Oct 2019 21:13:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-enable-startup-scripts/m-p/229930#M45630</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2019-10-21T21:13:41Z</dc:date>
    </item>
  </channel>
</rss>

