Meanwhile, make the filling: Put almonds, flour and sugar in work bowl of food processor and grind to a rough powder. Add butter and pulse until well incorporated. Add eggs and almond extract and process until smooth and creamy, about 2 minutes. (Alternatively, use ground almonds and make batter with a mixer instead.)