From 3bea215d7a626c15fd0dddf186c16bbddf4675dd Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 2 Feb 2016 16:14:11 +0200 Subject: Default to Mail.app --- Troublegun.scptd/Contents/Resources/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Troublegun.scptd/Contents/Resources') diff --git a/Troublegun.scptd/Contents/Resources/main.py b/Troublegun.scptd/Contents/Resources/main.py index 76cbbb0..6298af1 100755 --- a/Troublegun.scptd/Contents/Resources/main.py +++ b/Troublegun.scptd/Contents/Resources/main.py @@ -34,7 +34,7 @@ def screencapture(): def makemail(config): helper = gethelper() - if "com.apple.mail" in helper: + if helper == "" or "com.apple.mail" in helper: scpt = file(getresource("mail.scpt"), "r") elif "entourage" in helper: scpt = file(getresource("entourage.scpt"), "r") @@ -49,7 +49,6 @@ def makemail(config): def main(): config = getconfig() - if 'screencapture' in config.get('attachments'): config['filename'] = screencapture() -- cgit v1.2.3