– Create a new action
– while recording resize a picture to your desired height or width (keeping aspect ratio)
– close saving
– stop recording actions
– Use batch process to apply that action to all your pictures…
That will apply just one dimension keeping aspect ratio for the other one…