We give new formulae for analytic balayage of measures supported on subsets of Caratheodory compact sets in the complex plane, and consider a related problem of description of badly approximable functions in L-P(T).