Thanks Juan,
The problem seems consistent in that the process console window is always open when the UI hang occurs.
I previously disabled Global Preferences > Special GUI effects > Animate Autohide windows. The hang still occurs.
So is it possible to avoid opening the process console window completely during the save as process?
In the interim, I wrote a script, which does the save as with the console hidden.
So far it avoids the UI hang, but more trial is needed to see if the problem is really resolved.
Thanks,
Mike
// An approximate emulation of File > Save as...
// A proposed workaround for the Pixinsight 1195, Mac OS X El Capitan process
// console UI hang.
#include <pjsr/DataType.jsh>
#define VERSION "1.03"
function main() {
if (Parameters.isViewTarget) {
var targetWindow = Parameters.targetView.window;
}
else {
var targetWindow = ImageWindow.activeWindow;
}
if (targetWindow == null || !targetWindow.isWindow) {
return;
}
var directory = Settings.read("directory", DataType_String);
if (directory == null || !File.directoryExists(directory)) {
directory = File.currentWorkingDirectory;
}
console.hide();
var saveFileDialog = new SaveFileDialog;
saveFileDialog.initialPath =
targetWindow.filePath != "" ?
targetWindow.filePath :
directory + "/" +
targetWindow.mainView.fullId +
Settings.readGlobal(
"ImageWindow/DefaultFileExtension", DataType_UCString
);
saveFileDialog.loadImageFilters();
saveFileDialog.selectedFileExtension =
targetWindow.filePath != "" ?
File.extractExtension(targetWindow.filePath) :
Settings.readGlobal(
"ImageWindow/DefaultFileExtension", DataType_UCString
);
if (!saveFileDialog.execute()) {
return;
}
targetWindow.saveAs(
saveFileDialog.fileName, true, true, false, false
);
Settings.write(
"directory",
DataType_String,
File.extractDrive(saveFileDialog.fileName) +
File.extractDirectory(saveFileDialog.fileName)
);
}
main();
gc();