Why not use a free program, like Adobe Photoshop that comes with Epson scanners? It has a BATCH SAVE function. You can pick up a folder, and re-save its contents, rename names with a numbering system and pick the file size and density. Real easy.
I have used mouseclicks a few times and ran into trouble, I would recommend using some sort of file path command instead.
Good luck. I love seeing posts like this. People that are really into it and obviously learning.