View Single Post
Is there any sample code available for using Applescript with OmniGraffle?

What I am trying to do is generate pages with about 25 graphs on them. The program I am using to generate the graphs will only do one at a time so I thought I would import them in to OmniGraffle and resize and organize them there. Problem is that I can't even get "import" to work. For example if I use the code:
tell application "OmniGraffle Professional 4"
import ("/graph.pdf")
end tell

I get the error:
"OmniGraffle Professional 4 got an error: The operation was cancelled."

I am sure I am doing something stupid but I find Applescript pretty opaque.