var idPly = charIDToTypeID( "Ply " );
    var desc8 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref6 = new ActionReference();
        var idActn = charIDToTypeID( "Actn" );
        ref6.putName( idActn, "A4" );
        var idASet = charIDToTypeID( "ASet" );
         ref6.putName( idASet, "7 Custom Buttons" );
    desc8.putReference( idnull, ref6 );
executeAction( idPly, desc8, DialogModes.NO );