Initially I encountered fList is undefined errors, but after some tinkering, I no longer receive any errors when running the script.

The script is meant to automate photomerge. This script is intended to operate on images in a folder by processing the images 2 at a time until the entire folder has been processed. i.e. It will apply photomerge to File 1, File 2, save, then File 3, File 4, save, and on.

The problem -

1. the save function in the script does not work. When I run the script (located in the Presets\scripts folder), it processes, but does not save.

2. how can I modify the save function to save as a JPG file, grayscale instead?

Many thanks,

Jay

The script:

var runphotomergeFromScript = true; // must be before Photomerge include