Interesting problem. Normally the dispenser or the part is mounted to an X-Y table (like a CNC mill).
Not only do you need to keep the part under the dispenser, but you also have to manage velocity along the path.
Are you sure you want to pursue this option?