What is to foresee (a wish, command, etc.) and do beforehand that which will be desired called?

anticipate — To foresee (a wish, command, etc.) and do beforehand that which will be desired. (Webster's 1913.)

Sources