Melt the butter over medium-low heat. Place the apricots face-down in the pan and add the sprigs of rosemary or thyme. Sprinkle with salt. Fry until browning occurs – about 3 minutes. Flip the apricots over and let fry for another 2 minutes. Remove the rosemary/thyme and apricots from the pan.