#target photoshop
var idASty = charIDToTypeID( "ASty" );
var desc39 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref2 = new ActionReference();
var idStyl = charIDToTypeID( "Styl" );
ref2.putName( idStyl, "Double Green Slime" ); // change style name
desc39.putReference( idnull, ref2 );
var idT = charIDToTypeID( "T " );
var ref3 = new ActionReference();
var idLyr = charIDToTypeID( "Lyr " );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref3.putEnumerated( idLyr, idOrdn, idTrgt );
desc39.putReference( idT, ref3 );
var idGrup = charIDToTypeID( "Grup" );
desc39.putBoolean( idGrup, true );
executeAction( idASty, desc39, DialogModes.NO );
// =======================================================
var idASty = charIDToTypeID( "ASty" );
var desc35 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref5 = new ActionReference();
var idStyl = charIDToTypeID( "Styl" );
ref5.putName( idStyl, "Stamped Aluminium" ); // change style name
desc35.putReference( idnull, ref5 );
var idT = charIDToTypeID( "T " );
var ref6 = new ActionReference();
var idLyr = charIDToTypeID( "Lyr " );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref6.putEnumerated( idLyr, idOrdn, idTrgt );
desc35.putReference( idT, ref6 );
var idMrge = charIDToTypeID( "Mrge" );
desc35.putBoolean( idMrge, true );
var idGrup = charIDToTypeID( "Grup" );
desc35.putBoolean( idGrup, true );
executeAction( idASty, desc35, DialogModes.NO );