ErrStrs = {}; ErrStrs.USER_CANCELLED=localize("$$$/ScriptingSupport/Error/UserCancelled=用户取消了操作"); try {var idsave = charIDToTypeID( 'save' );     var desc1092 = new ActionDescriptor();     var idCpysp = charIDToTypeID( 'Cpy ' );     desc1092.putBoolean( idCpysp, true ); executeAction( idsave, desc1092, DialogModes.ALL ); } catch(e){if (e.toString().indexOf(ErrStrs.USER_CANCELLED)!=-1) {;} else{alert(localize("$$$/ScriptingSupport/Error/CommandNotAvailable=该命令当前不可用"));}}