1. A system for surgery on an eye, comprising: a. a pulsed laser configured to produce a treatment beam which creates dielectric breakdown in a focal zone of the treatment beam within a sclera of the eye; b. an imaging assembly capable of creating a continuous depth profile of the eye, the profile comprising information regarding the location of the sclera, by detecting remitted illumination light from locations distributed throughout a volume of the sclera, and generating signals based upon the remitted light; c. an optical scanning system configured to position a focal zone of the treatment beam to a targeted location in three dimensions in the sclera; and d. one or more controllers operatively coupled to the laser, optical system, and imaging assembly, and programmed to automatically: i. scan tissues of the patient's eye with the imaging assembly so as to generate image data signals to create a continuous depth profile of the sclera; ii. identify one or more boundaries of at least a portion of the sclera in the image data; iii. identify one or more treatment regions based upon the boundaries; and iv. operate the optical scanning system with the pulsed laser to produce a treatment beam directed in a pattern based on the one or more treatment regions so as to incise the sclera.