To make cookie dough in a food processor: Once you’ve ground your nuts to a powdery texture, add 1/2 cup of the powdered sugar, salt, and flour to the work bowl and blend to combine. Cut butter into chunks and add to the food processor along with vanilla. Run the machine until butter is fully blended into the other ingredients, scraping down the work bowl as needed to mix evenly. Transfer to a bowl and cover it with plastic wrap. Chill bowl in fridge for 30 minutes to 1 hour, until firm.