aboutsummaryrefslogtreecommitdiffstats
path: root/Troublegun.scptd/Contents/Resources
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-02-02 16:14:11 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-02-02 16:14:11 +0200
commit3bea215d7a626c15fd0dddf186c16bbddf4675dd (patch)
tree08382a62a299ecaef9d6c322a4321d2d0bd46805 /Troublegun.scptd/Contents/Resources
parent834d595594f4259e9cfcb41aeddaf63e35ee754e (diff)
downloadTroublegun-3bea215d7a626c15fd0dddf186c16bbddf4675dd.tar.gz
Troublegun-3bea215d7a626c15fd0dddf186c16bbddf4675dd.tar.bz2
Troublegun-3bea215d7a626c15fd0dddf186c16bbddf4675dd.zip
Default to Mail.app
Diffstat (limited to 'Troublegun.scptd/Contents/Resources')
-rwxr-xr-xTroublegun.scptd/Contents/Resources/main.py3
1 files changed, 1 insertions, 2 deletions
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()