I find myself wanting to extract the AppleScript dictionary (.sdef) file to PDF from time to time.
What if I find working is opening the .sdef file, then ⌘P (print) → Save as PDF
→ then I got the Save As dialog → and I saved it in the Download folder.
However, I find it too frictional. I was wondering if there is any way to automate the process and do the same function via an AppleScript?
For starters, you can use a virtual PDF printer (PDF Printer, VipRiser, PDFwriter, from the ones I have). The first two can be found in App Store (payment might be needed for full functionality).
Then you can automate the Cmd-P > enter sequence.
It’s possible that yet more elegant solutions are available that offer some additional automation.