Guides and cropping
Hi,
I have CS6, the extendscript tool, and am thinking of Photoshop. Of course, guides snap to the edges of my images. If I place 4 guides around my photo, and drag the crop tool; it will snap to each of these guides. Is it possible to write a script to: First, automatically place 3 guides on my image: one on the top edge, one of the right side, and one on the bottom edge? (then the script would have to pause or end, while I manually place the last on the left side.) And, then, if the positions of these guides are "known" to Photoshop; can a script place the crop tool on the rectangle defined by these 4 guides?
I can create an action that does the first part: that places 3 guides, automatically on the edges. Once I place the 4th guide, the crop tool will automatically size itself to fit right on the rectangles outlined by the guide. But I have to do a lot of zooming and panning to place the 4th guide, to get it just right. I notice, however, that if I click with the magnetic lasso tool--in the general vicinity of where the 4th guide needs to go--that I can zoom in, and Photoshop keeps the zoom focused on that first click of the lasso tool. I can escape out of it, place a guide there, then, the crop tool seems to automatically go where I want it to.
I am just wondering how aware Photoshop is of the positions of the guides, the edges of the images, and if it stores this information to variables, that in turn could be used when placing the crop tool.
Thanks, Steve
