Login  Register

Stop macro from aborting when clicking cancel in Save menu

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Stop macro from aborting when clicking cancel in Save menu

Straub, Volko A. (Dr.)
130 posts
Dear All,

I am using the saveAs macro function in a macro to prompt the user to save an image file. However, occasionally the user might decide that there is no need to safe the current image. But clicking the cancel button on the "Save as" dialog window causes the macro to abort. Does anybody have some advice how I can stop a macro from aborting when "Cancel" is clicked in a Windows dialog?

Thanks for your help,
Volko

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html