Whoops, sorry for the late reply, I often forget to read mailing lists I'm 
on for a while.

This isn't merely a script, it's actually a custom action. Drop it it 
~/Application Support/Quicksilver/Actions (you'll have to create the 
Actions folder, most likely), and then your workflow can be: select the 
files you want in Finder; use "Command Window With Selection", Cmd-G, or 
the Service to get them into QS; Tab, "compdf" (or something); Enter, wait 
a couple seconds and QS will reinvoke with the result; tab, Rename…, tab, 
whatever you want.

Custom actions are really powerful but not that well supported at the 
moment. This happened to be a lucky sort of action that *can* be built—I 
couldn't write one that asks for the output filename in the 3rd pane, for 
instance, due to API limitations. Hopefully that will get updated sometime.

On Friday, July 13, 2012 8:17:03 AM UTC-4, Michael Burer wrote:
>
> Thanks so much for working on this. I really appreciate it, as this will 
> be a big help to me. What I am getting is not quite what you describe, 
> though. Here's what's happening:
>
> This is what I do first in QS:
>
> Pane 1: Combine PDFs.scpt
> Pane 2: Open File . . .
> Pane 3: PDF1, PDF2
>
> This places the new file Combined PDFs 2 in the same folder, but it 
> doesn't return QS with the new file in focus for renaming, moving, etc. Do 
> I need a different syntax for the initial command?
>
> Thanks,
> Michael
>
> On Jul 13, 2012, at 24:09 , Daniel wrote:
>
> Not natively, no. The answer beyond that turns out to be that there's a 
> lot of different ways…and now *finally* I think I've found the right one.
>
>    - There are PDF-combining command-line tools, but you'd have to 
>    install them separately and I don't trust them.
>    - There's an Automator action to combine PDFs but you can't use a 
>    Workflow as an action and a Service-as-action can't return a result.
>       - The workflow could *manually* return a value to QS, but then 
>       using it as an actual service would invoke QS unwanted.
>       - Saving it as an app only makes things worse, since Open With… 
>       doesn't open all the dObjects in a single go, instead it opens them 
>       one-by-one.
>    - BUT. That combine PDFs action? It's written in Python and you can 
>    call the script directly. (Major thanks to this 
> guy<http://blog.gotofritz.net/howto/joining-pdf-files-in-os-x-from-the-command-line/>
>  for 
>    the tip.)
>
> So then. Here, have an AppleScript action (that calls said script). This 
> was a doozy to write—AppleScript hates handling files in any sane way 
> whatsoever, there's like 3 or 4 different "types" of file out there and 
> converting between them is a *major* pain. But it works.
>
> If your files are all in the same folder, the action creates a new file 
> called "Combined PDFs (number of files you selected).pdf" in that folder 
> and returns it to QS (so you can rename it and/or move it). It would be 
> trivial to modify the script to prompt for the output filename instead. If 
> your files *aren't* all in the same folder (critical when dealing with 
> QS, unlike with Services where presumably they'll all be in the same place 
> because you had to select them in the same Finder window to call the 
> service), the script asks you where you want the output file.
>
> On Wednesday, July 11, 2012 9:15:37 AM UTC-4, Michael Burer wrote:
>>
>> I'd like to merge pdf files with QS, but I can't find any documentation 
>> describing that as a feature. Is that possible at present? 
>
>
> -- You received this message because you are subscribed to the Google 
> Groups Quicksilver group. To post to this group, send email to 
> [email protected]. To unsubscribe from this group, 
> send email to [email protected]. For 
> more options, visit this group at 
> https://groups.google.com/d/forum/blacktree-quicksilver?hl=en<Combine 
> PDFs.scpt.zip>
>
>
>

-- You received this message because you are subscribed to the Google Groups 
Quicksilver group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send 
email to [email protected]. For more options, 
visit this group at 
https://groups.google.com/d/forum/blacktree-quicksilver?hl=en

Reply via email to