Short Answer:
obj<<Dispatch( {}, "", GraphBuilderContainerBox, {save picture("test.png",png)} );
Long answer:
So, JMP does this super annoying thing where if you save the script for something, but part of the thing is selected, the saved script also catches that and you have to re-run the report script then select nothing and then save the script.
It's really annoying, except when I'm trying to find out how to reference some part of a report or graph. In that case the script for the object includes a "Dispatch(some long string)", and this is super useful!
I made a control chart, used the selection tool to select the part I wanted, then saved the script.
I edited the script like this:
obj=Control Chart Builder(...
That "obj" is just an arbitrary variable name, but it lets me send messages to "obj" which is the control chart object.
In the script one thing was selected:
SendToReport(
Dispatch( {}, "", GraphBuilderContainerBox, {select} ),
I tried swapping out things in the curly brackets and discovered that "save picture" worked. Then it was just a matter of formatting the argument correctly and there we go.
JMP Systems Engineer, Health and Life Sciences (Pharma)