First import all files to one document using the Layers To Stack scriptSecond adjust your canvas size so it is 240 times the height of one of your images.Third, move all images but the first and last one in the sequence to the middle of the imageThen, the first image goes on top or bottom, the last image goes on bottom or topafter which, you reselect all layers and hit distribute layersjob done
Once you use load files into a stack script you could write a script to process the layers stack you would expand the canvas height for the next layer's height then align the layer with the canvas bottom.
Or if your file have the same canvas size you could use a script like my PasteImageRoll to layout your image on a canvas. Fill out its dialog. Then select all you fixed size image you have in some folder