diff options
Diffstat (limited to 'Troublegun.scptd/Contents/Resources/mail.scpt')
-rw-r--r-- | Troublegun.scptd/Contents/Resources/mail.scpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Troublegun.scptd/Contents/Resources/mail.scpt b/Troublegun.scptd/Contents/Resources/mail.scpt new file mode 100644 index 0000000..ee447a9 --- /dev/null +++ b/Troublegun.scptd/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 |