OmniGraffle help

Hi all,

This is driving me crazy…why can’t I do this:


tell application "OmniGraffle Professional 4"
    activate
    set theDoc to front document
    print theDoc
end tell

it tells me theDoc doesn’t know how to print.

Also, I tried saving as pdf and it tells me it can’t save to “pdf” format.


save theDoc in outFile as "pdf"

Any ideas?

ok, so the saving as pdf thing I figured out…just give the item the extension .pdf and nix the “as ‘pdf’” part:


save theDoc as "out.pdf"

works just fine magically.

also, for those interested, I found that the saving works differently in OG 4.2.1 and 4.2.2…sweeet…come on, Omni, really:

4.2.1:
saves as PDF:


save theDoc in "foo.pdf" as "pdf"

saves as .graffle:


save theDoc in "foo" as "pdf"

saves as PDF:


save theDoc in "foo.pdf"

4.2.2:
throws error:


save theDoc in "foo.pdf" as "pdf"

throws error:


save theDoc in "foo" as "pdf"

saves as PDF:


save theDoc in "foo.pdf"