OK. I just updated the script. Changes:
-A bit extra in the help windows
-Quoted the ROX command - the script now fully works with spaces in the path/name of the output file
-Changed the defaults so they are set to the working directory. (I really was silly - I was using /temp instead of /tmp )
-Changed the file selector for the output file to accept folders instead of files, so you can choose an empty directory, but you have to manually add the file name, so you can't just click on an existing file.

I'll just go and remove that "apology dialog". It is a leftover from an earlier stage of the design process.

Hello disciple,
Just letting you know that I will be including joinPDF in the Bugfix / Update of TEENpup 2.14.1 which will be released soon. _________________Legacy OS 2.1 LTS Released! Install me on a new! EXT2 Partition with 500Mb of swap and I'll be happy.
Legacy OS 4 Released! Install to newer legacy hardware / early EeePC's

I know this is a crude suggestion, but you could use a routine like the one below, but rather than using "mv" as in the attached script, replace it with "ln" to create symlinks in a temporary dir. You could then pass the symlinks to gs and remove them and the tmp dir after processing the pdfs. It's not a particularly elegant solution, I admit, but I think it just might do the trick.

I do find your program useful as I compose music and output scores to pdf files (for the moment, using Windows in a virtual machine). The parts - sometimes over 25 separate files for various instruments - also have to be included at the end of the main pdf (conductor's score) to simplify printing and emailing. JoinPdf does exactly what I need for that operation, so thanks.

I had thought of doing what you suggest, I was just waiting a while in case someone else had a look and figured out how to do it properly
It should be possible to do - I can do a script with the specific filenames in it, and that works, so I think I don't quite understand what's happening when I try to replace newlines from the sort output with spaces.

Posted: Mon 25 Aug 2008, 06:34 Post_subject:
Sub_title: OK, I have the solution, now I just need the time to figure out the necessary code

We can create a temporary folder somewhere, and as we find each pdf, symlink it into that folder, with a name that is the current count, and then we join like this:
~# gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="/ouput path/output file.pdf" ~/.joinpdf/*.pdf
I checked, and gs does join files with an *, so now we just need to figure out how to create all those symlinks. I figure no one will be joining more than 100 files, so we can start at 01. Or I guess to be really sure we could do 001, 002, 003...
Or maybe it would be easier to start at 100 so we don't have to figure out a way to prefix the zeros. So we just somehow get a count and add 100._________________DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!