Hi Paul,
Although your suggestion to "Throw your whole lineup box in a journal" was initially frightening to a newbie, I cast about the web for syntax, and at the top of the script added a new journal window with:
new window(sample||"_ERG", <<journal);
and then followed each section of code that created a Lineup Box window with:
current report()<<journal;
At the end of the script I adjusted your code to match my window names:
jrn = current journal();
jrn << Set page setup( margins( 0.5, 0.5, 0.5, 0.5 ), scale( 0.4 ), portrait( 1 ), paper size( "A4" ) );
jrn << Save PDF( sample||"_ERG.pdf" );
This worked almost perfectly! I've attached screenshots (pardon the resolution) of the JSL saved .pdf (first attachment) and of the journal window manually exported as a pdf from JMP (second attachment). If possible I'd like to scrub the "Graph Builder" control headers from the JSL output (as in the JMP output) and enlarge the plots a bit, but other than that you provided the solution I was looking for. Thanks very much.
Cheers,
Mark