diff options
-rw-r--r-- | README.md | 1 | ||||
-rwxr-xr-x | Troublegun.scptd/Contents/Resources/main.py | 3 |
2 files changed, 1 insertions, 3 deletions
@@ -11,7 +11,6 @@ template with any necessary attachments (currently only a screenshot). - Python 2.7 or later - Mail.app or Microsoft Entourage - ### Configuration Navigate to __Troublegun.app > Show package contents > Contents > Resources__ and edit config.ini to your liking. 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() |