From 1ebff43a47eea78643a903d85b13c91eb94d1e76 Mon Sep 17 00:00:00 2001 From: "Jessica B. Hamrick" Date: Mon, 15 Apr 2013 16:51:38 -0700 Subject: [PATCH] Look for OmniGraffle Professional 5 if OmniGraffle 5 does not exist --- omnigraffle_export/omnigraffle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/omnigraffle_export/omnigraffle.py b/omnigraffle_export/omnigraffle.py index ed5cc5e..8f1749d 100644 --- a/omnigraffle_export/omnigraffle.py +++ b/omnigraffle_export/omnigraffle.py @@ -85,7 +85,10 @@ def active_canvas_name(self): class OmniGraffle(object): def __init__(self): - self.og = app('OmniGraffle 5.app') + try: + self.og = app('OmniGraffle 5.app') + except: + self.og = app('OmniGraffle Professional 5.app') def active_document(self): self.og.activate()