Imagine the following: I have 100 photos of a night out. Some are portrait, some are landscape. I need them all resized to 800x600 / 600x800. I want to batch process this. How can I resize all landscape photos to 800x600 and all portrait photos to 600x800 in one process? Currently, I'm resizing each photo manually through two separate Photoshop actions but when I have many photos, it gets tiresome having to do this. I'm wondering if there is some way I can automate it. Perhaps some sort of script? I am of course aware of the batch processing command, but that doesn't account for my problem. Any help would be most appreciated.