From 586d878a7c53e3198d379e39fe0bb9061dc4b1f0 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Tue, 27 Mar 2018 16:48:16 +0200 Subject: [PATCH] Add option to save the log file --- .../scripts/Plugins/NoiSee/NoiSee_Fluorescein_Analysis.ijm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Fluorescein_Analysis.ijm b/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Fluorescein_Analysis.ijm index 644a22d..a7ba4b2 100644 --- a/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Fluorescein_Analysis.ijm +++ b/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Fluorescein_Analysis.ijm @@ -3,6 +3,7 @@ // @File(label="Fluorescein image",description="fluorescein image") fluoimage // @Boolean(label="Save results as PDF",description="generate a PDF with images and plots",value="true") save_pdf // @Integer(label="Log level",description="higher number means more messages",min=0,max=2,style="scroll bar") LOGLEVEL +// @Boolean(label="Save log messages",description="save contents of the 'Log' window in a text file",value="false") save_log //////////// NoiSee Fluorescein Analysis /////////////////////////////////////////////////////// @@ -269,6 +270,11 @@ function process_fluo() { ////////// arrange the windows and create a PDF of images and plots ////////// ////////// rgb_sig = duplicateAndClose(rgb_sig); rgb_hist = duplicateAndClose(rgb_hist); + if (save_log) { + selectWindow("Log"); + saveAs("Text", respath + "/Log.txt"); + } + setBatchMode("exit and display"); // exit batch mode and show images // wait(100); // give the OS some time to display all image windows -- GitLab