We study the quantum dynamics of a Michelson interferometer with Fabry-Perot cavity arms and one movable end mirror, and driven by a single photon --- an optomechanical device previously studied by Marshall et al. as a device that searches for gravity decoherence. We obtain an exact analytical solution for the systems quantum mechanical equations of motion, including details about the exchange of the single photon between the cavity mode and the external continuum. The resulting time evolution of the interferometers fringe visibility displays interesting new features when the incoming photons frequency uncertainty is narrower or comparable to the cavitys line width --- only in the limiting case of much broader-band photon does the result return to that of Marshall et al., but in this case the photon is not very likely to enter the cavity and interact with the mirror, making the experiment less efficient and more susceptible to imperfections. In addition, we show that in the strong-coupling regime, by engineering the incoming photons wave function, it is possible to prepare the movable mirror into an arbitrary quantum state of a multi-dimensional Hilbert space.