<?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 grab OutlineBox title with 'Get Script' in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-grab-OutlineBox-title-with-Get-Script/m-p/917534#M107715</link>
    <description>&lt;P&gt;I think using XPath might be simpler and more direct. See this illustration:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = dt &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :height ), Fit Line( 1 ) );

rpt = biv &amp;lt;&amp;lt; Report;

outlineNames = (rpt &amp;lt;&amp;lt; XPath( "//OutlineBox" )) &amp;lt;&amp;lt; Get Title;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Dec 2025 14:15:03 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2025-12-04T14:15:03Z</dc:date>
    <item>
      <title>How to grab OutlineBox title with 'Get Script'</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-grab-OutlineBox-title-with-Get-Script/m-p/917504#M107712</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to use the 'get script' function to grab information about a report that I can combine together to a .jrp file (similar to the details in &lt;A href="https://community.jmp.com/t5/Discussions/Save-charts-as-quot-jrp-quot-file-in-JSL/m-p/10582" target="_self"&gt;this post&lt;/A&gt; except I'm going to add some extra components that will run on boot for the .jrp, hence why I'm not using the 'Save Report Window' function). The problem I'm having is that I need to grab the OutlineBox titles (which are named by the script, and are tracked in case of changes in my wider project) as well, otherwise I can't actually recreate the report. See the example below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something in the 'get script' function to bring in the OutlineBox titles as well?&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);
report_win = New Window("Testwindow",
    Outline Box("tester",
    	Textbox("Test")
    )
    );

report_win &amp;lt;&amp;lt; Get Script;

//RESULT: V List Box( V List Box( Outline Box( Text Box( "Test" ) ) ) )

//If I were to take that same script and try to recreate as a jrp file works....
//New Window("test", V List Box( V List Box( Outline Box( Text Box( "Test" ) ) ) ))
//resulting failure: expected character arg 1 in access or evaluation of 'Outline Box' , Outline Box/*###*/(Text Box( "Test" ))

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Dec 2025 12:25:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-grab-OutlineBox-title-with-Get-Script/m-p/917504#M107712</guid>
      <dc:creator>RahBarroso</dc:creator>
      <dc:date>2025-12-04T12:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to grab OutlineBox title with 'Get Script'</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-grab-OutlineBox-title-with-Get-Script/m-p/917514#M107713</link>
      <description>&lt;P&gt;I'm not sure you can use &amp;lt;&amp;lt; Get Script for what you are trying to do. And what you could/should do depends on your end goal. I'm pretty sure I'm missing something on why you couldn't use &amp;lt;&amp;lt; Save Window Report but it could be one option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
report_win = New Window("Testwindow", &amp;lt;&amp;lt; Type("Report"), Outline Box("tester", Text Box("Test")));

report_win &amp;lt;&amp;lt; Save Window Report("$TEMP/test.jrp");
s1 = report_win &amp;lt;&amp;lt; get script;
wait(0);
s2 = Parse(Load Text File("$TEMP/test.jrp"));
wait(0);
Delete File("$TEMP/test.jrp");

Show(s1, s2);

ob_script = Extract Expr(s2, Outline Box(WildList()));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;s1 = V List Box(V List Box(OutlineBox(Text Box("Test"))));
s2 = New Window("Testwindow", Outline Box("tester", Text Box("Test")));
Outline Box("tester", Text Box("Test"))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Dec 2025 12:45:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-grab-OutlineBox-title-with-Get-Script/m-p/917514#M107713</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-12-04T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to grab OutlineBox title with 'Get Script'</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-grab-OutlineBox-title-with-Get-Script/m-p/917534#M107715</link>
      <description>&lt;P&gt;I think using XPath might be simpler and more direct. See this illustration:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = dt &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :height ), Fit Line( 1 ) );

rpt = biv &amp;lt;&amp;lt; Report;

outlineNames = (rpt &amp;lt;&amp;lt; XPath( "//OutlineBox" )) &amp;lt;&amp;lt; Get Title;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Dec 2025 14:15:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-grab-OutlineBox-title-with-Get-Script/m-p/917534#M107715</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2025-12-04T14:15:03Z</dc:date>
    </item>
  </channel>
</rss>

