With the scriptlistner plugin installed create an outerbevel with the settings you require. Then before doing anything else in Photoshop open the scriptlistnerJS log and find the last entry. It should look something like this. This is an outerbevel with the default settings. // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc9074 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref109 = new ActionReference(); var idPrpr = charIDToTypeID( "Prpr" ); var idLefx = charIDToTypeID( "Lefx" ); ref109.putProperty( idPrpr, idLefx ); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref109.putEnumerated( idLyr, idOrdn, idTrgt ); desc9074.putReference( idnull, ref109 ); var idT = charIDToTypeID( "T " ); var desc9075 = new ActionDescriptor(); var idScl = charIDToTypeID( "Scl " ); var idPrc = charIDToTypeID( "#Prc" ); desc9075.putUnitDouble( idScl, idPrc, 416.666667 ); var idebbl = charIDToTypeID( "ebbl" ); var desc9076 = new ActionDescriptor(); var idenab = charIDToTypeID( "enab" ); desc9076.putBoolean( idenab, true ); var idhglM = charIDToTypeID( "hglM" ); var idBlnM = charIDToTypeID( "BlnM" ); var idScrn = charIDToTypeID( "Scrn" ); desc9076.putEnumerated( idhglM, idBlnM, idScrn ); var idhglC = charIDToTypeID( "hglC" ); var desc9077 = new ActionDescriptor(); var idRd = charIDToTypeID( "Rd " ); desc9077.putDouble( idRd, 255.000000 ); var idGrn = charIDToTypeID( "Grn " ); desc9077.putDouble( idGrn, 255.000000 ); var idBl = charIDToTypeID( "Bl " ); desc9077.putDouble( idBl, 255.000000 ); var idRGBC = charIDToTypeID( "RGBC" ); desc9076.putObject( idhglC, idRGBC, desc9077 ); var idhglO = charIDToTypeID( "hglO" ); var idPrc = charIDToTypeID( "#Prc" ); desc9076.putUnitDouble( idhglO, idPrc, 75.000000 ); var idsdwM = charIDToTypeID( "sdwM" ); var idBlnM = charIDToTypeID( "BlnM" ); var idMltp = charIDToTypeID( "Mltp" ); desc9076.putEnumerated( idsdwM, idBlnM, idMltp ); var idsdwC = charIDToTypeID( "sdwC" ); var desc9078 = new ActionDescriptor(); var idRd = charIDToTypeID( "Rd " ); desc9078.putDouble( idRd, 0.000000 ); var idGrn = charIDToTypeID( "Grn " ); desc9078.putDouble( idGrn, 0.000000 ); var idBl = charIDToTypeID( "Bl " ); desc9078.putDouble( idBl, 0.000000 ); var idRGBC = charIDToTypeID( "RGBC" ); desc9076.putObject( idsdwC, idRGBC, desc9078 ); var idsdwO = charIDToTypeID( "sdwO" ); var idPrc = charIDToTypeID( "#Prc" ); desc9076.putUnitDouble( idsdwO, idPrc, 75.000000 ); var idbvlT = charIDToTypeID( "bvlT" ); var idbvlT = charIDToTypeID( "bvlT" ); var idSfBL = charIDToTypeID( "SfBL" ); desc9076.putEnumerated( idbvlT, idbvlT, idSfBL ); var idbvlS = charIDToTypeID( "bvlS" ); var idBESl = charIDToTypeID( "BESl" ); var idOtrB = charIDToTypeID( "OtrB" ); desc9076.putEnumerated( idbvlS, idBESl, idOtrB ); var iduglg = charIDToTypeID( "uglg" ); desc9076.putBoolean( iduglg, true ); var idlagl = charIDToTypeID( "lagl" ); var idAng = charIDToTypeID( "#Ang" ); desc9076.putUnitDouble( idlagl, idAng, 120.000000 ); var idLald = charIDToTypeID( "Lald" ); var idAng = charIDToTypeID( "#Ang" ); desc9076.putUnitDouble( idLald, idAng, 30.000000 ); var idsrgR = charIDToTypeID( "srgR" ); var idPrc = charIDToTypeID( "#Prc" ); desc9076.putUnitDouble( idsrgR, idPrc, 100.000000 ); var idblur = charIDToTypeID( "blur" ); var idPxl = charIDToTypeID( "#Pxl" ); desc9076.putUnitDouble( idblur, idPxl, 5.000000 ); var idbvlD = charIDToTypeID( "bvlD" ); var idBESs = charIDToTypeID( "BESs" ); var idIn = charIDToTypeID( "In " ); desc9076.putEnumerated( idbvlD, idBESs, idIn ); var idTrnS = charIDToTypeID( "TrnS" ); var desc9079 = new ActionDescriptor(); var idNm = charIDToTypeID( "Nm " ); desc9079.putString( idNm, "Linear" ); var idShpC = charIDToTypeID( "ShpC" ); desc9076.putObject( idTrnS, idShpC, desc9079 ); var idantialiasGloss = stringIDToTypeID( "antialiasGloss" ); desc9076.putBoolean( idantialiasGloss, false ); var idSftn = charIDToTypeID( "Sftn" ); var idPxl = charIDToTypeID( "#Pxl" ); desc9076.putUnitDouble( idSftn, idPxl, 0.000000 ); var iduseShape = stringIDToTypeID( "useShape" ); desc9076.putBoolean( iduseShape, false ); var iduseTexture = stringIDToTypeID( "useTexture" ); desc9076.putBoolean( iduseTexture, false ); var idebbl = charIDToTypeID( "ebbl" ); desc9075.putObject( idebbl, idebbl, desc9076 ); var idLefx = charIDToTypeID( "Lefx" ); desc9074.putObject( idT, idLefx, desc9075 ); executeAction( idsetd, desc9074, DialogModes.NO ); You need to include all of those lines in the code that you call with your applescript.
... View more