--- jsampler/trunk/src/org/jsampler/view/std/JSLscpScriptDlg.java 2009/04/01 15:21:13 1882 +++ jsampler/trunk/src/org/jsampler/view/std/JSLscpScriptDlg.java 2009/04/05 09:15:35 1883 @@ -126,7 +126,9 @@ File f = StdUtils.showSaveLscpFileChooser(this); if(f == null) return; - if(f.exists()) { + boolean b = preferences().getBoolProperty("nativeFileChoosers"); + // On Mac OS the native file chooser asks whether to replace a file + if(f.exists() && !(CC.isMacOS() && b)) { String msg = i18n.getMessage("JSLscpScriptDlg.overwriteFile?"); if(!HF.showYesNoDialog(CC.getMainFrame(), msg)) return; }