He spent two years as private secretary to the bishop of Seckau, and then was appointed in 1754 as physician of the mercury mines in Idrija, a small town in the Habsburg realm, remaining there until 1769.