Putting "Crop and Straighten Photos" into a macro - CS6 (Win)
Hi everyone,
I’m in the process of batch-cropping and rotating a massive archive of TIFF scans, all saved in a zillion of different folders with an intricate nested structure. I’ve quickly put together a simple action in Photoshop CS6 (Win) based on “Crop and Straighten Photos”. It does the job brilliantly and works like a breeze.
The only issue is that “Crop and Straighten Photos” also duplicates the window, so end up with two: 1) the original image, and 2) the cropped and de-skewed version of the latter, with the suffix ‘copy’ appended to its filename. Please see snapshot.

Getting rid of the original image is fairly simple (the last two lines of the actions do exactly that) but unfortunately I end up with a different filename, which leads to all sorts of difficulties.
a) If I use the standard batch panel, I cannot set “Save and close” as destination. The filename is now different so PS keeps prompting for a destination folder and a file name. From the PS’s perspective it makes a great deal of sense (it’s dealing with something new) but a manual input every time completely negates the whole point of batch processing…
b) If I choose to use “Image processor” or “Image Processor Pro” I get a different issue. For some obscure and rather frustrating reasons, both tools don’t close the file at the end of the action. Since each file is the region of 90MB, after a while PS crashes. Adding a line with a “Close” command leads to nothing. What I get is just another prompt for a destination folder and a file name.
Please take into account that the folders structure must remain unchanged, and having all outputs files in the same folder is not the best solution as I have to edit literally thousands of folders.
I’m a fairly knowledgeable PS user and I’ve systematically tried and tested every conceivable combination of action end commands and batch options, including – or course – “Override action”. Nope. I’ve researched extensively online and tried all solutions suggested: including changing History states, reverting PS to original settings and working with a droplet. Nope again.
Any help would be massively appreciated.
Many thanks
sr
