Well it's probably not the fanciest thing ever but yeah I was able to write up a combination of a bash script and automator app that can process any number of pictures into individual pdfs.
Basically all it is a automator app that follows this workflow
1) Echo input
2) Save input as a variable FullFilePath
3) Get the file name without extension from that using basename
4) Save that as a variable FileName
5) Make new desktop folder for output
6) Get the FullFilePath variable
7) Convert that to a pdf
8) Save it with the name Converted.pdf on the Desktop
9) Rename that using the FileName variable to 'some file name'.pdf (obviously some file name is the name of the the original file minus the original extension and base path)
10) Move the renamed file to the desktop output folder
Next I made a shell script that takes a Folder as an argument and recursively runs the above application on every file in that folder and all it's sub folders.
Code:
#!/bin/bash
dive(){
FILES="$1"
for f in "$FILES"/*
do
if [ -d "$f" ]; then
dive "$f"
else
echo "Processing $f file..."
open -a ~/Desktop/demo.app "$f"
fi
done
}
dive "$1"
How to then run the process is something like this in terminal:
Code:
/Users/w0lf/Desktop/pdf.sh /Users/w0lf/Desktop/untitled\ folder
With output something like this:
Code:
Processing /Users/w0lf/Desktop/untitled folder/Screen Shot 2013-11-03 at 1.36.08 PM.png file...
Processing /Users/w0lf/Desktop/untitled folder/untitled folder/Screen Shot 2013-11-03 at 12.58.08 PM.png file...
Note1:
Doing this for 2,000 items might not work great. I'd start by testing with like, 10 then 100 then 1,000.
Note2:
You can also simply drag any number of images (has to be at the same time) onto the demo.app if you just want to merge them into one .pdf
Attached is a zip archive of the:
1) workflow
2) built app
3) shell script