<?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 Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &amp;lt;&amp;lt;  /*###*/get column names( string, continuous ) /*###*/ in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718245#M90052</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have modified the script shared earlier by one of the contributors (thank you) so that the user can choose which data file (.jmp) file to open:&lt;/SPAN&gt;&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 );

// Open a dialog to choose a .jmp file to open

// Get the filename of the .jmp file to open
dt = Pick File("Select a .jmp file to open", "", {"JMP Files|jmp;jsl;jrn", "All Files|*"}, 1, 0, "");

// If the user did not select a file, exit the script
If( Is Missing( dt ),
	Throw(), 
	// Else Open the selected file
	Open( dt )
);

// Get all of the numeric column's names
colNameList = dt &amp;lt;&amp;lt; get column names( string, continuous );

// Take the data from rows 1 &amp;amp; 2 and create the Spec Limits column property
For Each( {col}, colNameList,
	Eval(
		Substitute(
				Expr(
					Column( dt, col ) &amp;lt;&amp;lt; set property(
						"Spec Limits",
						{LSL( _LSL_ ), USL( _USL_ ), Show Limits( 1 )}
					)
				),
			Expr( _LSL_ ), As Column( dt, col )[1],
			Expr( _USL_ ), As Column( dt, col )[2]
		)
	)
);

// Exclude and Hide row 1 &amp;amp; 2 to eliminate them from Distributions
dt &amp;lt;&amp;lt; Select rows( {1,2} );
dt &amp;lt;&amp;lt; hide and exclude;

// Run the Distribution Platform
dt &amp;lt;&amp;lt; Distribution( column( eval(colNameList) ));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When running the script, I ran into the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Send Expects Scriptable Object in access or evaluation of 'Send' , dt &amp;lt;&amp;lt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;/*###*/get column names( string, continuous ) /*###*/&lt;BR /&gt;&lt;BR /&gt;It seemed there is a problem with the dt &amp;lt;&amp;lt; get columns names?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have also attached a copy of the data file which I would like to process.&lt;SPAN&gt;&amp;nbsp;1st and 2 rows of data are the LSL and USL respectively, which I do not want to be included as part of the data. But rather they are used to plot the LSL and USL lines in the Distribution graph.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciate any help from the community. Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 02:42:25 GMT</pubDate>
    <dc:creator>BooBee</dc:creator>
    <dc:date>2024-01-24T02:42:25Z</dc:date>
    <item>
      <title>Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718245#M90052</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have modified the script shared earlier by one of the contributors (thank you) so that the user can choose which data file (.jmp) file to open:&lt;/SPAN&gt;&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 );

// Open a dialog to choose a .jmp file to open

// Get the filename of the .jmp file to open
dt = Pick File("Select a .jmp file to open", "", {"JMP Files|jmp;jsl;jrn", "All Files|*"}, 1, 0, "");

// If the user did not select a file, exit the script
If( Is Missing( dt ),
	Throw(), 
	// Else Open the selected file
	Open( dt )
);

// Get all of the numeric column's names
colNameList = dt &amp;lt;&amp;lt; get column names( string, continuous );

// Take the data from rows 1 &amp;amp; 2 and create the Spec Limits column property
For Each( {col}, colNameList,
	Eval(
		Substitute(
				Expr(
					Column( dt, col ) &amp;lt;&amp;lt; set property(
						"Spec Limits",
						{LSL( _LSL_ ), USL( _USL_ ), Show Limits( 1 )}
					)
				),
			Expr( _LSL_ ), As Column( dt, col )[1],
			Expr( _USL_ ), As Column( dt, col )[2]
		)
	)
);

// Exclude and Hide row 1 &amp;amp; 2 to eliminate them from Distributions
dt &amp;lt;&amp;lt; Select rows( {1,2} );
dt &amp;lt;&amp;lt; hide and exclude;

// Run the Distribution Platform
dt &amp;lt;&amp;lt; Distribution( column( eval(colNameList) ));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When running the script, I ran into the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Send Expects Scriptable Object in access or evaluation of 'Send' , dt &amp;lt;&amp;lt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;/*###*/get column names( string, continuous ) /*###*/&lt;BR /&gt;&lt;BR /&gt;It seemed there is a problem with the dt &amp;lt;&amp;lt; get columns names?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have also attached a copy of the data file which I would like to process.&lt;SPAN&gt;&amp;nbsp;1st and 2 rows of data are the LSL and USL respectively, which I do not want to be included as part of the data. But rather they are used to plot the LSL and USL lines in the Distribution graph.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciate any help from the community. Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 02:42:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718245#M90052</guid>
      <dc:creator>BooBee</dc:creator>
      <dc:date>2024-01-24T02:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718246#M90053</link>
      <description>&lt;P&gt;The variable "dt" is the issue.&amp;nbsp; You are using it in your Pick File() as the result of the pick.&amp;nbsp; It therefore will have the value of the&amp;nbsp; path and name of the file you want to open, like&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"C:\Documents\myfile.jmp"&lt;/P&gt;
&lt;P&gt;This is very appropriate for your Open() function,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( dt )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;since the Open() function needs to have the path and file name.&lt;/P&gt;
&lt;P&gt;However, after opening the data table, "dt" is used as the object of the message, get column names()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;colNameList = dt &amp;lt;&amp;lt; get column names( string, continuous );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The get column names() message needs to be applied to a data table, not to a path and file name.&lt;/P&gt;
&lt;P&gt;Your JSL will run if you change your Open() function call to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( dt )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The variable will be changed to take on the value&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Data Table( "the name of the data table" )&lt;/P&gt;
&lt;P&gt;which will be the form needed for the remainder of your JSL&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 03:43:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718246#M90053</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-24T03:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718250#M90057</link>
      <description>&lt;P&gt;Thank you for your clear explanation. I understand what you meant when you said dt originally took on the name of the path and filename, which then renders it unusable for when I tried to get the column names. I should therefore perform:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;dt = Open( dt )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that the data table is loaded with the appropriate data from the file for proper processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I also ask if I would like the script to adjust the individual Maximums and Minimums of the Y axes of each graph, how can I do it?&lt;BR /&gt;&lt;BR /&gt;I would like to find the absolute range between the USL and LSL, then put the Max Y at USL + 0.1*range, Min Y as LSL-0.1*range. The idea is to have a consistent presentation for that the distribution graphs.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 05:00:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718250#M90057</guid>
      <dc:creator>BooBee</dc:creator>
      <dc:date>2024-01-24T05:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718253#M90059</link>
      <description>&lt;P&gt;Once Spec Limits Column Properties are set, and the Show(1), element is specified, then by default, JMP will change the axis values for each graph, to include all data points and all specified Spec Limits&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1706077222176.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60524iAA978D5A67E359EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1706077222176.png" alt="txnelson_0-1706077222176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 06:20:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718253#M90059</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-24T06:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718255#M90061</link>
      <description>&lt;P&gt;I hear you said that once we put in the Show( ) function in the script, JMP will adjust the Max and Min of the axis to take into account of the all the data points and the LSL and USL.&lt;BR /&gt;&lt;BR /&gt;But say if I want to define Max and Min manually (using the formulae I mentioned earlier) through the script, is it doable?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 06:33:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718255#M90061</guid>
      <dc:creator>BooBee</dc:creator>
      <dc:date>2024-01-24T06:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718256#M90062</link>
      <description>&lt;P&gt;It is easily done.&amp;nbsp; Look in the Scripting Index and look at the messages available for the AxisBox object.&amp;nbsp; You can set the Min and Max values.&amp;nbsp; There are examples in the index illustrating the JSL.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 07:03:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718256#M90062</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-24T07:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718372#M90098</link>
      <description>&lt;P&gt;I added the following lines to see if I can get the distribution graphs to change the Max and Min of their Y axes:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Adjust Min and Max Y-axis
dist = dt &amp;lt;&amp;lt; Set Axis(
	Min( -10 ),
	Max( 10 )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There seem to be no effect. Am I doing it wrong?&lt;BR /&gt;&lt;BR /&gt;The complete script:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Get the filename of the .jmp file to open
dt = Pick File("Select a .jmp file to open", "", {"JMP Files|jmp;jsl;jrn", "All Files|*"}, 1, 0, "");

// If the user did not select a file, exit the script
If( Is Missing( dt ),
    Throw(),
    // Else Open the selected file
    dt = Open( dt )
);

// Get all of the numeric column's names
colNameList = dt &amp;lt;&amp;lt; get column names( string, continuous );

// Take the data from rows 1 &amp;amp; 2 and create the Spec Limits column property
For Each( {col}, colNameList,
    Eval(
        Substitute(
            Expr(
                Column( dt, col ) &amp;lt;&amp;lt; set property(
                    "Spec Limits",
                    {LSL( _LSL_ ), USL( _USL_ ), Show Limits( 1 )}
                )
            ),
            Expr( _LSL_ ), As Column( dt, col )[1],
            Expr( _USL_ ), As Column( dt, col )[2]
        )
    )
);

// Exclude and Hide row 1 &amp;amp; 2 to eliminate them from Distributions
dt &amp;lt;&amp;lt; Select rows( {1,2} );
dt &amp;lt;&amp;lt; hide and exclude;

// Adjust Min and Max Y-axis
dist = dt &amp;lt;&amp;lt; Set Axis(
	Min( -10 ),
	Max( 10 )
);

// Run the Distribution Platform
dist = dt &amp;lt;&amp;lt; Distribution( column( eval(colNameList) ));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jan 2024 06:31:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718372#M90098</guid>
      <dc:creator>BooBee</dc:creator>
      <dc:date>2024-01-25T06:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718374#M90099</link>
      <description>&lt;P&gt;The syntax for setting the Max value for the Axis is not&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dist = dt &amp;lt;&amp;lt; Set Axis(
	Min( -10 ),
	Max( 10 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Scripting Index for changing settings for an AxisBox() is shown below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1706165286166.png" style="width: 804px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60584i57194E4250E98B57/image-dimensions/804x374?v=v2" width="804" height="374" role="button" title="txnelson_0-1706165286166.png" alt="txnelson_0-1706165286166.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The JSL example shows the correct syntax to use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = Bivariate( Y( :weight ), X( :height ), FitLine );
rbiv = biv &amp;lt;&amp;lt; report;
axisbox = rbiv[axis box( 1 )];
axisbox &amp;lt;&amp;lt; Max( 120 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is a slight modification of the example syntax, where the setting of the axis is for a Histogram plot, similar to what you have indicated you want to use in your script.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Run the Distribution Platform
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dist = dt &amp;lt;&amp;lt; Distribution( column( :weight ));
rdist = dist &amp;lt;&amp;lt; report;
axisbox = rdist[axis box( 1 )];
axisbox &amp;lt;&amp;lt; Max( 200 ) &amp;lt;&amp;lt; Min( 50 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can learn more about the manipulating of the display output in the Scripting Guide's section on Display Trees.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 06:55:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718374#M90099</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-25T06:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718375#M90100</link>
      <description>&lt;P&gt;Made a small progress by changing the script to the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Get the filename of the .jmp file to open
dt = Pick File("Select a .jmp file to open", "", {"JMP Files|jmp;jsl;jrn", "All Files|*"}, 1, 0, "");

// If the user did not select a file, exit the script
If( Is Missing( dt ),
    Throw(),
    // Else Open the selected file
    dt = Open( dt )
);

// Get all of the numeric column's names
colNameList = dt &amp;lt;&amp;lt; get column names( string, continuous );

// Take the data from rows 1 &amp;amp; 2 and create the Spec Limits column property
For Each( {col}, colNameList,
    Eval(
        Substitute(
            Expr(
                Column( dt, col ) &amp;lt;&amp;lt; set property(
                    "Spec Limits",
                    {LSL( _LSL_ ), USL( _USL_ ), Show Limits( 1 )}
                )
            ),
            Expr( _LSL_ ), As Column( dt, col )[1],
            Expr( _USL_ ), As Column( dt, col )[2]
        )
    )
);

// Exclude and Hide row 1 &amp;amp; 2 to eliminate them from Distributions
dt &amp;lt;&amp;lt; Select rows( {1,2} );
dt &amp;lt;&amp;lt; hide and exclude;

// Adjust Min and Max Y-axis
//dist = dt &amp;lt;&amp;lt; Set Axis(
//	Min( -10 ),
//	Max( 10 )
//);

// Run the Distribution Platform
dist = dt &amp;lt;&amp;lt; Distribution( column( eval(colNameList) ));

// Adjust Min and Max Y-axis
rdist = dist &amp;lt;&amp;lt; report;
axisbox = rdist[axis box( 1 )];
axisbox &amp;lt;&amp;lt; Min( 0 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;With the change, I managed to change the Min of the first distribution chart to "0" but the rest of the changes remained unchanged. May I know how should I should change the code such that Min setting can be applied to the all the charts?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 06:58:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718375#M90100</guid>
      <dc:creator>BooBee</dc:creator>
      <dc:date>2024-01-25T06:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718379#M90104</link>
      <description>&lt;P&gt;It will seem that I will need some sort of loop such that the axis settings are applied to all the distribution charts?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 09:10:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718379#M90104</guid>
      <dc:creator>BooBee</dc:creator>
      <dc:date>2024-01-25T09:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718380#M90105</link>
      <description>&lt;P&gt;Yes, all that needs to be done is to loop across the output and adjust each of the axes.&amp;nbsp; See below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);

// Get the filename of the .jmp file to open
dt = Pick File("Select a .jmp file to open", "", {"JMP Files|jmp;jsl;jrn", "All Files|*"}, 1, 0, "");

// If the user did not select a file, exit the script
If( Is Missing( dt ),
    Throw(),
    // Else Open the selected file
    dt = Open( dt )
);

// Get all of the numeric column's names
colNameList = dt &amp;lt;&amp;lt; get column names( string, continuous );

// Take the data from rows 1 &amp;amp; 2 and create the Spec Limits column property
For Each( {col}, colNameList,
    Eval(
        Substitute(
            Expr(
                Column( dt, col ) &amp;lt;&amp;lt; set property(
                    "Spec Limits",
                    {LSL( _LSL_ ), USL( _USL_ ), Show Limits( 1 )}
                )
            ),
            Expr( _LSL_ ), As Column( dt, col )[1],
            Expr( _USL_ ), As Column( dt, col )[2]
        )
    )
);

// Exclude and Hide row 1 &amp;amp; 2 to eliminate them from Distributions
dt &amp;lt;&amp;lt; Select rows( {1,2} );
dt &amp;lt;&amp;lt; hide and exclude(1);

// Run the Distribution Platform
dist = dt &amp;lt;&amp;lt; Distribution( column( eval(colNameList) ));

// Loop across the output and addjust the axes 
rdist = dist &amp;lt;&amp;lt; report;
For Each( {col, i}, colNameList,
	offset = (Column( col )[2] - Column( col )[1]) * .1;
	myMin = Column( col )[1] - offset;
	myMax = Column( col )[2] + offset;
	// Adjust Min and Max Y-axis
	rdist[axis box( i )] &amp;lt;&amp;lt; Min( myMin ) &amp;lt;&amp;lt; Max( myMax );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jan 2024 11:05:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718380#M90105</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-25T11:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in running script - Send Expects Scriptable Object in access or evaluation of 'Send' , dt &lt;&lt;  /*###*/get column names( string, continuous ) /*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718469#M90134</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for guiding me through this journey!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 12:59:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Error-in-running-script-Send-Expects-Scriptable-Object-in-access/m-p/718469#M90134</guid>
      <dc:creator>BooBee</dc:creator>
      <dc:date>2024-01-26T12:59:29Z</dc:date>
    </item>
  </channel>
</rss>

