GitXplorerGitXplorer
d

graffle-export

public
25 stars
10 forks
4 issues

Commits

List of commits on branch master.
Unverified
b605b461a29b73ab4c21bd42b48549bd8bad8fcc

Have OmniGraffle guess if no format given on command line

committed 15 years ago
Unverified
c9328df26c4e64fb2f1af29ce69914a031269e48

Adding ChangeLog file

ddcreager committed 17 years ago
Unverified
6ba27809b19b1278b76bf0b3286f38f40d7782cd

Correctly find OmniGraffle's new application name

ddcreager committed 17 years ago
Unverified
a8c92a81822b6ae569b4f04de625be78bc0d6e98

Automatically determine which OmniGraffle to use

ddcreager committed 19 years ago
Unverified
36acca98ec8830e9f30fccb5e6fe0d033c67bf47

Graffle export script handles absolute pathnames correctly

ddcreager committed 19 years ago
Unverified
9a855b35749ea23c8871e6df42ad6a10bf4faa8d

Don't close Graffle doc if it was open previously

ddcreager committed 19 years ago

README

The README file for this repository.

OmniGraffle export scripts

Created by David Faitelson davidf@comlab.ox.ac.uk Modified by Douglas Creager dougc@comlab.ox.ac.uk

This package provides command-line access to the export functionality of OmniGraffle. This allows you, for instance, to automatically generate the necessary EPS and PDF versions of an OmniGraffle figure for incorporating into an automatic build system for a LaTeX document.

The package consists of an AppleScript (graffle.scpt), which must be edited using Apple's Script Editor application, as it's stored in a binary format. This AppleScript contains the integration logic for communicating with OmniGraffle. As there are two versions of OmniGraffle available, standard and professional, it takes the application name as a command-line argument.

A shell script is provided for simplifying the command line interface. It will try to automatically determine which version of OmniGraffle you have installed; this will only work if OmniGraffle is installed into /Applications. If it is not, you can specify which version to use by setting the GRAFFLE_APP environment variable to either "OmniGraffle" or "OmniGraffle Professional".

The usage of the shell script is:

graffle.sh []

Both filenames are mandatory. The format name is optional. The list of acceptable format names is not well-documented in the OmniGraffle reference. In OmniGraffle 4, it seems that you can certainly use the list of choices in the "Format" field of OmniGraffle's export dialog box (e.g., "PNG bitmap image"). Shortcuts also seem to work -- "pdf", "PDF", "eps", "EPS" have all been verified (under OmniGraffle 4.x) to produce correct output. Under OmniGraffle 5, several of these choices don't work — most notably, PDF.

If you leave out , then OmniGraffle will try to guess the correct output format based on the extension of . This seems to be more reliable than guessing which to use, and seems to work with both OmniGraffle 4 and 5.