It’s not a script. “Save PDF to DEVONthink Pro” is an alias to the DEVONthink application – the alias is found in ~/Library/PDF Services. The way these PDF services work is that OS X gets the content and document or window name (depending on the source application) and sends it to the target (aliased) application. Results vary, but usually Mail is consistent in sending the subject line of a message, which is then used by the receiving app (DEVONthink) as the PDF document name.
Over here, I’m not able to replicate the problem @quantumgardener describes – but it is easy to check. Set DEVONthink > Preferences > Import > Destination to “Select Group” and then try printing a PDF using “Save PDF to DEVONthink Pro”. The group selector will open in DEVONthink asking for the destination group in which to place the PDF, and (most importantly) showing in a editable text box at the top of the selector the name that DEVONthink will give the document.
If the problem persists, perhaps a reboot would clear it – it might be a stuck queue – and using “Select Group” for imports always offers the opportunity to name the document.
Strange. Since DEVONthink only knows what OS X print services and Mail tell it, I don’t see how DEVONthink would know the name of the other document unless it received it from print services. So, the problem is probably not DEVONthink. You might find some insight if you posted the question at the Apple Support forum
@philslade: I don’t think you will find that capturing Web pages from the forum as PDFs is an efficient workflow.
The PDF format isn’t very file size efficient.
The entire page is captured, including extraneous material.
The full contents of boxes holding scripts or images may not be captured.
The last point above is critical, if you are trying to document useful scripts. The PDF often won’t include the entire script.
I usually capture only a selected area of a Web page, as rich text. That’s the most file size efficient format that will include formatted text, images, tables, lists, images, ‘box’ areas such as those that hold long scripts, and hyperlinks. Selecting only the desired area will exclude extraneous content and so improve the efficiency of searches and the AI assistants such as Classify and See Also.
Capture as PDF: 315.5 KB; most of the script was’t captured, so the documentation is useless.
Capture of the posts in the thread as rich text: 60.4 KB; the full script is available for copy/paste to the AppleScript editor, and extraneous content wasn’t captured. And no issue with the document Name.
Note: Don’t try to use Chrome or Firefox for rich text capture, as neither browser properly handles OS X Services.