Hi - rather than just creating an object called MyDist, you could append the Distribution to an initially empty Line Up Box, and then display that Line Up Box in a window. The following shows the sort of thing, though obviously the actual numbers I've used here won't make sense in the context of your capability analysis. Please note that I'm running this in JMP 10, as I think it won't work in JMP 9:
Open( "$SAMPLE_DATA/Big Class.jmp" );
analyzelist = {"height", "weight"};
tot_entry = N Items( analyzelist );
lsl = 80;
usl = 90;
target = 70;
title = "MY TITLE";
lub = Lineup Box( N Col( 1 ) );
For( i = 1, i <= tot_entry, i++,
lub << append( Distribution(
Continuous Distribution(
Column( Eval( analyzelist ) ),
Stack( 1 ), Horizontal Layout( 1 ), Normal Quantile Plot( 1), Stem and Leaf( 1 ),
Capability Analysis( LSL( Eval( lsl ) ), USL( Eval( usl ) ),
Target( Eval( target ) ) ) ),
SendToReport( Dispatch( {}, "Distributions",
OutlineBox, {Set Title( "Distribution of " || title )} ))
)));
nw = New Window( "Capability Charts", lub );
/*
I'm sorry I can't format this any better, but I seem to be unable to paste script directly into this window. You can reformat it from the Edit menu once it's inside a script window, however. Here's another example of the same sort of thing in which I've created a grid of outputs from the Graph Builder:
*/
dt = Open( "$SAMPLE_DATA/Car Physical Data.jmp" );
colnames = dt << get column names( numeric );
show(colnames);
lub = line up box(ncol(3));
for(i=1, i<=nItems(colnames), i++,
lub << append(Graph Builder(
Size(300, 200 ), Show Control Panel( 0 ), Show Legend( 0 ),
Variables( X( :Country ), Y( eval(char(colnames)) ) ),
Elements( Box Plot( X, Y, Legend( 0 ), Jitter( 1 ), Outliers( 1 ), Box Style( "Outlier" )))
))
);
nw = new window("Box Plots", lub);