macs don't have seq? wtf? How can it be unix and not have seq? ("JOBS!" I scream in a Kirk-hating-Khan-voice.)
Anyway, I've swapped out the script in post #26 with one that doesn't use seq. I also tried to make a minor speed improvement, but I doubt it will matter much.
I'm not actually sure the chmod step is even necessary, but it may depend on your tar.gz archive extraction program. It won't hurt though you might as well keep doing it.
So now we can see how this one breaks.
P.S. Of course this doesn't replace BRISS. If nothing else, this script is incapable of removing headers and footers, which BRISS is. BRISS is also more useful for scanned PDFs and multicolumn PDFs and a lot more. I love BRISS and use it a lot.
P.P.S. I know nothing about Applescript, but I imagine the way to go would be to call the bash script from the Applescript, rather than trying to convert the one to the other... just use one inside the other, so to speak.
Last edited by frabjous; 10-20-2010 at 01:56 PM.
|