OmniGraffle v5.2.3...
I have a large number of graphviz dot files that I was hoping to script up batch importing, styling, then exporting for. Unfortunately, I'm both an applescript and omnigraffle noob, and can't seem to get the 'import' command to work.
fails with:
On the other hand, using the open command as below works, but pops up a dialog to select the layout type to use for dot import (which isn't super friendly for batch processing):
Thanks,
pschorr
I have a large number of graphviz dot files that I was hoping to script up batch importing, styling, then exporting for. Unfortunately, I'm both an applescript and omnigraffle noob, and can't seem to get the 'import' command to work.
Code:
tell application "OmniGraffle 5" import (POSIX file "~/test.dot") end tell
Code:
tell application "OmniGraffle 5" import file "HD:Users:username:test.dot" --> error number -1717 Result: error "OmniGraffle 5 got an error: The handler some object is not defined." number -1717
Code:
tell application "OmniGraffle 5" open (POSIX file "~/test.dot") end tell
pschorr