I started with a folder containing 5 RAW files, one vertical and the rest horizontals. In Photoshop, chose File>Scripts>Image Processor... There, clicked on Select Folder and browsed to the folder containg the 5 RAWs. For the Select folder to Save To, clicked Same Location. In the File Type box, clicked jpg, Resize to Fit, and 1400 for W and H. Then clicked Run. Photoshop went to work and produced 5 new files that it put in a new folder called JPG, and placed that JPG file in the original folder that held the RAW files.