"Mask Options" // OPTION MASK
var desc14 = new ActionDescriptor();
var ref3 = new ActionReference();
ref3.putEnumerated( charIDToTypeID( "Chnl" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ));
desc14.putReference( charIDToTypeID( "null" ), ref3 );
var desc15 = new ActionDescriptor();
var desc16 = new ActionDescriptor();
desc16.putUnitDouble( charIDToTypeID( "H " ), charIDToTypeID( "#Ang" ), 183.526611 );
desc16.putDouble( charIDToTypeID( "Strt" ), 100.000000 );
desc16.putDouble( charIDToTypeID( "Brgh" ), 100.000000 );
desc15.putObject( charIDToTypeID( "Clr " ), charIDToTypeID( "HSBC" ), desc16 );
desc15.putUnitDouble( charIDToTypeID( "Opct" ), charIDToTypeID( "#Prc" ), 50.000000 );
desc14.putObject( charIDToTypeID( "T " ), charIDToTypeID( "Chnl" ), desc15 );
executeAction( charIDToTypeID( "setd" ), desc14, DialogModes.ALL ); "Select and mask" //Select and mask
sTID = function(s) { return app.stringIDToTypeID(s); };
executeAction(sTID('refineSelectionEdge'), undefined, DialogModes.ALL);
... View more