An automated apparatus and method for coating medical devices such as an intravascular stent, are disclosed in the method, a 2-D image of a stent is processed to determine (1) paths along the stent skeletal elements by which a stent secured to a rotating support element can be traversed by a dispenser head whose relative motion with respect to the support element is along the support-element axis, such that some or all of the stent skeletal elements will be traversed (2) the relative speeds of the dispenser head and support element as the dispenser head travels along the paths, and (3), and positions of the dispenser head with respect to a centerline of the stent elements as the dispenser head travels along such paths The rotational speed of the support and relative linear speed of the dispenser are controlled to achieve the desired coating thickness and coating coverage on the upper surfaces, and optionally, the side surfaces, of the stem elements.