Sentence:  The essence of <WSD>psychoprophylaxis</WSD>, as of psychotherapy and education, was to associate useful activities with agreeable feeling tones, and to disassociate from useless or injurious acts the agreeable feeling tones they might have acquired. 
Meaning of the word marked with <WSD> tags:  The prevention of (disease) by (psychological) means.