I have the following function in a script:
function makeSelectionFromRGB()
{
var idsetd = charIDToTypeID( "setd" );
var desc2237 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref970 = new ActionReference();
var idChnl = charIDToTypeID( "Chnl" );
var idfsel = charIDToTypeID( "fsel" );
ref970.putProperty( idChnl, idfsel );
desc2237.putReference( idnull, ref970 );
var idT = charIDToTypeID( "T " );
var ref971 = new ActionReference();
var idChnl = charIDToTypeID( "Chnl" );
var idChnl = charIDToTypeID( "Chnl" );
var idRGB = charIDToTypeID( "RGB " );
ref971.putEnumerated( idChnl, idChnl, idRGB );
desc2237.putReference( idT, ref971 );
executeAction( idsetd, desc2237, DialogModes.NO );
}
This function makes selections on an image based on something I can't find out, and its's what I want to find out. I have tried to view the history panel, but it doesn't provide details. The history log only says that a script was run. How can I recreate this script's actions in photoshop?