it can be done by shadetree wiring it, but it would be easiest to use a controller that is made for that purpose. it will incorporate turning on the high speed with the a/c, which is good, as well as allowing low speed operation when the motor is cooler (or no a/c).
the controller Michael Yount uses would work real nice too.
good luck.