In your food processor add the flour, sugar, baking powder and salt. Pulse a couple just to mix all the dry ingredients. Add the butter and pulse about 20 times. Next, add the eggs and pulse until the dough forms into a ball. Remove the dough from the food processor and knead it a bit on a floured surface. Shape the dough into a log and wrap it in plastic.
Put flour, sugar, baking powder, and salt in a food processor fitted with the metal blade; pulse just to mix. Add the butter pieces and pulse 20 times. Add eggs and pulse until dough forms a ball on the blade. Remove from processor and knead briefly on a lightly floured work surface until smooth. Shape dough into a log and wrap in plastic.
Put all the figs and the rest of the filling ingredients in the food process and pulse it until finely chopped.
Preheat your oven to 350 F degrees.
Cut the filling log into 10 pieces and cut the cookie dough log into 10 pieces as well. Using one piece of dough at a time, toll it into a 3 by 12 inch rectangle. Now you can roll each piece of filling into a 12 inch rope, or just arrange with your hands in the middle of the dough.
Pull the dough around the filling and pinch the ends making a seam. Flatten the roll using a spatula or just your hands. Cut the log into 6 pieces.
Repeat with remaining pieces of dough and filling. Place the cookies on an ungreased baking sheet.
Bake the cookies for about 15 minutes or until lightly golden in color.