ErrStrs = {}; ErrStrs.USER_CANCELLED=localize("$$$/ScriptingSupport/Error/UserCancelled=User cancelled the operation"); try {var idslct = charIDToTypeID( 'slct' );     var desc1094 = new ActionDescriptor();     var idnull = charIDToTypeID( 'null' );         var ref879 = new ActionReference();         var idMnspsp = charIDToTypeID( 'Mn  ' );         var idMnIt = charIDToTypeID( 'MnIt' );         var idClsA = charIDToTypeID( 'ClsA' );         ref879.putEnumerated( idMnspsp, idMnIt, idClsA );     desc1094.putReference( idnull, ref879 ); executeAction( idslct, desc1094, DialogModes.ALL ); } catch(e){if (e.toString().indexOf(ErrStrs.USER_CANCELLED)!=-1) {;} else{alert(localize("$$$/ScriptingSupport/Error/CommandNotAvailable=The command is currently not available"));}}