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 Today's Posts

 
Exporting omnigraffle canvases to PDF,SVG,PNG,EPS from command line Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Filip:

I have not used python before, but the script looks clean. I need to specify a resolution for each canvas to support the different screens in iOS. An example of a OmniGraffle Pro document where each canvas is an icon (i.e.: a deck of cards).

Code:
$ omnigraffle-export -f png --resolution 1.0 cards.graffle DeckImages

$ omnigraffle-export -f png --resolution 2.0 --suffix "@2x~iphone" cards.graffle DeckImages
The --resolution is the omnigraffle applescript "export setting - resolution"
The --suffix will be added to the filename.

If the canvas was named ace, then ace.png, and ace@2x~iphone.png would be generated.

When I get to the point of export my cards, I'll make the changes to your script. Unless, of course, you add it first ;)
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Build Fails For OmniFileStore at OFSDocumentStore.m davidbitton Omni Frameworks 3 2012-06-12 11:03 PM
Selecting 003 rows with 'command-line' queries RobTrew OmniOutliner 3 for Mac 1 2010-07-08 01:46 AM
Redirecting command line output into OO ptorngaard OmniOutliner 3 for Mac 3 2009-04-05 11:29 PM
OmniGraffle Frustrations - Master Canvases ggaudrea OmniGraffle General 3 2008-05-01 04:02 PM
Create new search through command line m-rick OmniWeb General 1 2007-03-19 03:27 PM


All times are GMT -8. The time now is 02:41 PM.


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