So i have a PDF file and i'm using Automator to generate JPG files from each slide. Then i want to loop through each of these images and create side-by-side photos from them. So page 1 and page 2 will create an image, then page 3 and 4 too, and so on... I have an Applescript action so far where the input is all of the image files:
on run {input, parameters}
set selectedFiles to {}
repeat with i in input
copy (POSIX path of i) to end of selectedFiles
end repeat
return selectedFiles
end run
The function what i want to do is this, which is an ImageMagick function two merge to images next to eachother:
do shell script "convert " +append 01.jpg 02.jpg 01&2.jpg
How can i add this function inside my Applescript above?
Or maybe it would be easier to do with Shell script?