Report with an imageHi,
the script below generates a window with an image, a script box and a play button.
When I click on play, I get the warning:

I don’t want to save any report – I just want to run the script – without a warning message.
I can disable this message on my computer via the preferences, but another user might want to have this choice.
how can I disable the warning message for my report?
When I click on "Reference", in the future, I can run the script in the Scriptbox without the warning - till I close the window and open a new report. Can I somehow set it once to “Reference” for the report, such that the warning doesn’t show up?
dummyImage = Open( "$SAMPLE_IMAGES/progress.gif", gif );
New Window( "",
V List Box(
Picture Box( dummy Image ),
sb = Script Box( "Caption(\!"hello\!")" ),
Button Box( "play", sb << run() )
)
);
Automation and ScriptingData Exploration and VisualizationRe: Report with an imageWhen I run the script (windows 10 using JMP Pro 18.01) and press Play I do not get the same prompt. The caption box opens normally and I can close scripts/window like I normally would. My preference for Save table with report has been set as Prompt

Re: Report with an imageHm, surprising.
I see it with Jmp17.2, 18.1 and JMP 19EA4.
Re: Report with an imageLooking at my script folder ...
Hey, who generated all those report files ?!?!
ah ...

Interesting, seems that JMP just clicks on save - even if the window is a report window !
NB: the autosave before run is very (!!) helpful.
I don't know how many times it saved the work of the last 30min from a nasty bug in the script!
Re: Report with an imageEasy solution:
after debugging the application, I want to use it as a Dialog - and in Dialogs one can run scripts without triggering the auto-save : )
dummyImage = Open( "$SAMPLE_IMAGES/progress.gif", gif );
nw = New Window( "",
<< type("Dialog"), // new -> solves the issue
V List Box(
Picture Box( dummy Image ),
sb = Script Box( "Caption(\!"hello\!")" ),
Button Box( "play", sb << run() )
)
);