PDA

View Full Version : Export lots of drawings to PDF


RushManbert
2008-01-18, 02:55 PM
I thought maybe I should just say what I really want to do and see if anyone can point me in the right direction.

I have about 50 OG drawings that I need other people to review. Some of them have OG, but others don't, and some are using Windows machines. The common format we can all look at are PDF files.

I don't want to open and export all of the files by hand. I was hoping there would be a way to do this using either AppleScript or Automator. I haven't used either in the past, but when I opened Automator I didn't see any OG actions, and when I opened the OG Pro dictionary in the AppleScript editor, I didn't see anything that would let me either export to PDF or print to PDF.

If there were a command line interface to OG, I would be golden, because I can write shell and Python scripts like a... well, let's just say that I know how to write those.

Does anyone have any suggestions for me?

Thanks,
Rush

JKT
2008-01-18, 04:50 PM
Do you mean the drawings are all in the same, single OmniGraffle file or that they are spread across 50 different files?

If the former I assume you can't or don't want to simply print the whole document for people to view?

From the "it just might work" school: if they are separate files, could you create and use a desktop printer to drag and drop print each file?

(Btw, I doubt I'll be able to help if you do answer this as I don't do scripting at all, but I think you need to be more precise about what it is you need before others can chime in).

RushManbert
2008-01-21, 10:32 AM
My drawings are spread across 50 different files.

Here's the command line equivalent of what I want to do:
find . -name "*.graffle" -exec TellOmniGraffleToExportThisFileToPdf {} \;

where TellOmniGraffleToExportThisFileToPdf is the mythical, nonexistent OG command line interface that I wish existed.

- Rush