The code below was generated by the Script Listener in PS CC 2014 with all updates. When I run the code in Extend Script an exception is thrown by the last line stating that the Make command is not available in this version of PS! How can I fix this? Thanks.
By the way, how can I paste code into a message here and preserve the indenting. Sometimes the indents are preserved and sometimes not.
function createInnerGlowRectangle(recTop, recLeft, recBottom, recRight, recResolution) {
// Draws a rectangle using the Rectangle tool.
// =======================================================
var idMk = charIDToTypeID( "Mk " );
var desc2 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref1 = new ActionReference();
var idcontentLayer = stringIDToTypeID( "contentLayer" );
ref1.putClass( idcontentLayer );
desc2.putReference( idnull, ref1 );
var idUsng = charIDToTypeID( "Usng" );
var desc3 = new ActionDescriptor();
var idType = charIDToTypeID( "Type" );
var desc4 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc5 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc5.putDouble( idRd, 255.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc5.putDouble( idGrn, 255.000000 );
var idBl = charIDToTypeID( "Bl " );
desc5.putDouble( idBl, 255.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc4.putObject( idClr, idRGBC, desc5 );
var idsolidColorLayer = stringIDToTypeID( "solidColorLayer" );
desc3.putObject( idType, idsolidColorLayer, desc4 );
var idShp = charIDToTypeID( "Shp " );
var desc6 = new ActionDescriptor();
var idunitValueQuadVersion = stringIDToTypeID( "unitValueQuadVersion" );
desc6.putInteger( idunitValueQuadVersion, 1 );
var idTop = charIDToTypeID( "Top " );
var idPxl = charIDToTypeID( "#Pxl" );
desc6.putUnitDouble( idTop, idPxl, recTop );
var idLeft = charIDToTypeID( "Left" );
var idPxl = charIDToTypeID( "#Pxl" );
desc6.putUnitDouble( idLeft, idPxl, recLeft );
var idBtom = charIDToTypeID( "Btom" );
var idPxl = charIDToTypeID( "#Pxl" );
desc6.putUnitDouble( idBtom, idPxl, recBottom );
var idRght = charIDToTypeID( "Rght" );
var idPxl = charIDToTypeID( "#Pxl" );
desc6.putUnitDouble( idRght, idPxl, recRight );
var idtopRight = stringIDToTypeID( "topRight" );
var idPxl = charIDToTypeID( "#Pxl" );
desc6.putUnitDouble( idtopRight, idPxl, -1.000000 );
var idtopLeft = stringIDToTypeID( "topLeft" );
var idPxl = charIDToTypeID( "#Pxl" );
desc6.putUnitDouble( idtopLeft, idPxl, -1.000000 );
var idbottomLeft = stringIDToTypeID( "bottomLeft" );
var idPxl = charIDToTypeID( "#Pxl" );
desc6.putUnitDouble( idbottomLeft, idPxl, -1.000000 );
var idbottomRight = stringIDToTypeID( "bottomRight" );
var idPxl = charIDToTypeID( "#Pxl" );
desc6.putUnitDouble( idbottomRight, idPxl, -1.000000 );
var idRctn = charIDToTypeID( "Rctn" );
desc3.putObject( idShp, idRctn, desc6 );
var idstrokeStyle = stringIDToTypeID( "strokeStyle" );
var desc7 = new ActionDescriptor();
var idstrokeStyleVersion = stringIDToTypeID( "strokeStyleVersion" );
desc7.putInteger( idstrokeStyleVersion, 2 );
var idstrokeEnabled = stringIDToTypeID( "strokeEnabled" );
desc7.putBoolean( idstrokeEnabled, false );
var idfillEnabled = stringIDToTypeID( "fillEnabled" );
desc7.putBoolean( idfillEnabled, true );
var idstrokeStyleLineWidth = stringIDToTypeID( "strokeStyleLineWidth" );
var idPnt = charIDToTypeID( "#Pnt" );
desc7.putUnitDouble( idstrokeStyleLineWidth, idPnt, 3.000000 );
var idstrokeStyleLineDashOffset = stringIDToTypeID( "strokeStyleLineDashOffset" );
var idPnt = charIDToTypeID( "#Pnt" );
desc7.putUnitDouble( idstrokeStyleLineDashOffset, idPnt, 0.000000 );
var idstrokeStyleMiterLimit = stringIDToTypeID( "strokeStyleMiterLimit" );
desc7.putDouble( idstrokeStyleMiterLimit, 100.000000 );
var idstrokeStyleLineCapType = stringIDToTypeID( "strokeStyleLineCapType" );
var idstrokeStyleLineCapType = stringIDToTypeID( "strokeStyleLineCapType" );
var idstrokeStyleButtCap = stringIDToTypeID( "strokeStyleButtCap" );
desc7.putEnumerated( idstrokeStyleLineCapType, idstrokeStyleLineCapType, idstrokeStyleButtCap );
var idstrokeStyleLineJoinType = stringIDToTypeID( "strokeStyleLineJoinType" );
var idstrokeStyleLineJoinType = stringIDToTypeID( "strokeStyleLineJoinType" );
var idstrokeStyleMiterJoin = stringIDToTypeID( "strokeStyleMiterJoin" );
desc7.putEnumerated( idstrokeStyleLineJoinType, idstrokeStyleLineJoinType, idstrokeStyleMiterJoin );
var idstrokeStyleLineAlignment = stringIDToTypeID( "strokeStyleLineAlignment" );
var idstrokeStyleLineAlignment = stringIDToTypeID( "strokeStyleLineAlignment" );
var idstrokeStyleAlignInside = stringIDToTypeID( "strokeStyleAlignInside" );
desc7.putEnumerated( idstrokeStyleLineAlignment, idstrokeStyleLineAlignment, idstrokeStyleAlignInside );
var idstrokeStyleScaleLock = stringIDToTypeID( "strokeStyleScaleLock" );
desc7.putBoolean( idstrokeStyleScaleLock, false );
var idstrokeStyleStrokeAdjust = stringIDToTypeID( "strokeStyleStrokeAdjust" );
desc7.putBoolean( idstrokeStyleStrokeAdjust, false );
var idstrokeStyleLineDashSet = stringIDToTypeID( "strokeStyleLineDashSet" );
var list1 = new ActionList();
desc7.putList( idstrokeStyleLineDashSet, list1 );
var idstrokeStyleBlendMode = stringIDToTypeID( "strokeStyleBlendMode" );
var idBlnM = charIDToTypeID( "BlnM" );
var idNrml = charIDToTypeID( "Nrml" );
desc7.putEnumerated( idstrokeStyleBlendMode, idBlnM, idNrml );
var idstrokeStyleOpacity = stringIDToTypeID( "strokeStyleOpacity" );
var idPrc = charIDToTypeID( "#Prc" );
desc7.putUnitDouble( idstrokeStyleOpacity, idPrc, 100.000000 );
var idstrokeStyleContent = stringIDToTypeID( "strokeStyleContent" );
var desc8 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc9 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc9.putDouble( idRd, 0.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc9.putDouble( idGrn, 0.000000 );
var idBl = charIDToTypeID( "Bl " );
desc9.putDouble( idBl, 0.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc8.putObject( idClr, idRGBC, desc9 );
var idsolidColorLayer = stringIDToTypeID( "solidColorLayer" );
desc7.putObject( idstrokeStyleContent, idsolidColorLayer, desc8 );
var idstrokeStyleResolution = stringIDToTypeID( "strokeStyleResolution" );
desc7.putDouble( idstrokeStyleResolution, recResolution );
var idstrokeStyle = stringIDToTypeID( "strokeStyle" );
desc3.putObject( idstrokeStyle, idstrokeStyle, desc7 );
var idcontentLayer = stringIDToTypeID( "contentLayer" );
desc2.putObject( idUsng, idcontentLayer, desc3 );
executeAction( idMk, desc2, DialogModes.NO );