File file = selectSnapshotFile(defaultFile);
if (file == null) {
return;
}
CursorToken token = null;
try {
token = WaitCursorManager.showWaitCursor();
contentPane.getStatusBar().setMessage("Exporting image: " + defaultFile.getAbsolutePath());
String msg = createSnapshotNonInteractive(target, file, false);
if(msg != null && msg.toLowerCase().startsWith("error")){