Pour the coarse salt onto a plate.
Rub the rim of the cocktail glass with lime.
Dip the glass into the salt.
Fill the glass with ice.
Pour in the ingredients in this order: tequila, triple sec, lime juice, cranberry juice.
Stir.
Garnish with cranberries, lime, and rosemary.