preheat oven to 350
Spread nuts on a baking sheet in one layer and bake for about 12 minutes, giving them a shake now and again.(make sure they don't burn...should have a nice crunch when done)
mix together the butter, rosemary, cayenne pepper, sugar, and salt. As soon as the nuts are done toss them in the mixture and serve.