In a food processor, combine the flour, sugar, baking powder and salt. Add the butter and pulse until the butter pieces are pea-sized. Add the buttermilk and pulse just long enough to moisten the flour. Transfer to a bowl and fold in the cranberries. Do not overmix.