In a food processor, blend sugar and almonds until almonds are very fine. Cut the butter into medium-sized chunks and add with the motor running. Process until smoth and creamy. Add the extracts and milk, and process until blended, scraping sides of bowl. Remove the cover and add the flour, sprinkling the salt on top. Pulse in the flour just until the dough starts to clump together. Scrape dough into bowl and refrigerate for 2 hours or overnight.