Resize and scale script

I would like to resize any jpegs that come into a folder to have their shortest side at a length of 501 pixels.
I would also like the same script to scale the jpegs to around 25kb in size so that I can store them online and post them easily to websites.
I would then like the script to move the jpegs to a new folder called “bookimages”.
Can anyone help me?

Model: iMac
AppleScript: 2.6.1
Browser: Safari 537.85.10
Operating System: Mac OS X (10.8)

Your best bet is Automator. For compression, you’ll need to download “Automator JPG Compressor” (FREE) to get the files compressed to 25k though.

Thanks a lot. That is doing the job for me very nicely. I can’t seem to get automator to move the scaled and compressed images to a new folder.
I’m using hazel to run a the workflow whenever I scan new images into this folder.
I also want to move the scaled and compressed images into a new folder. But its not moving the new files for me.

You have to make sure that you add “Get Folder Contents” in your workflow. This tells the action which files need to be moved.