aboutsummaryrefslogtreecommitdiffstats
path: root/Troublegun.app/Contents/Resources/mail.scpt
diff options
context:
space:
mode:
Diffstat (limited to 'Troublegun.app/Contents/Resources/mail.scpt')
-rw-r--r--Troublegun.app/Contents/Resources/mail.scpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Troublegun.app/Contents/Resources/mail.scpt b/Troublegun.app/Contents/Resources/mail.scpt
new file mode 100644
index 0000000..ee447a9
--- /dev/null
+++ b/Troublegun.app/Contents/Resources/mail.scpt
@@ -0,0 +1,10 @@
+tell application "Mail"
+ set theMessage to make new outgoing message with properties {visible:true, subject:"$subject", content:"$message"}
+ tell theMessage
+ make new to recipient at end of to recipients with properties {name:"$name", address:"$address"}
+ end tell
+ tell content of theMessage
+ make new attachment with properties {file name:"$filename"}
+ end tell
+ activate
+end tell