The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Applescript import of dot files Thread Tools Search this Thread Display Modes
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.

Code:
tell application "OmniGraffle 5"
	import (POSIX file "~/test.dot")
end tell
fails with:

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
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):

Code:
tell application "OmniGraffle 5"
	open (POSIX file "~/test.dot")
end tell
Thanks,
pschorr
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestion: Have OF Import OPML files as a new Project gattaca OmniFocus 1 for Mac 5 2013-01-29 09:17 PM
Import OPML files into Omnifocus ?? alexlot OmniFocus for iPad 0 2012-01-02 03:43 AM
How to import SVG files? sunshine OmniGraffle General 1 2010-05-15 01:14 PM
Can we import HTML Dynamic files to create outlines?? Bob A OmniOutliner 3 for Mac 2 2009-02-08 12:50 PM


All times are GMT -8. The time now is 01:05 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.