ErrStrs = {}; ErrStrs.USER_CANCELLED=localize("$$$/ScriptingSupport/Error/UserCancelled=User cancelled the operation"); try {var idFlip = charIDToTypeID( 'Flip' );     var desc1053 = new ActionDescriptor();     var idAxis = charIDToTypeID( 'Axis' );     var idOrnt = charIDToTypeID( 'Ornt' );     var idHrzn = charIDToTypeID( 'Hrzn' );     desc1053.putEnumerated( idAxis, idOrnt, idHrzn ); executeAction( idFlip, desc1053, DialogModes.ALL ); } catch(e){if (e.toString().indexOf(ErrStrs.USER_CANCELLED)!=-1) {;} else{alert(localize("$$$/ScriptingSupport/Error/CommandNotAvailable=The command is currently not available"));}}