Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
Can't understand or decipher photoshop scripting function

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!