Problems scripting MS Entourage
Problems scripting MS Entourage
- Subject: Problems scripting MS Entourage
- From: Rob Stott <email@hidden>
- Date: Fri, 02 Nov 2001 15:19:20 +0000
Hi, I've got a droplet (contents of the script below) that lets me drop
files onto it to send to specific email address. It works fine but for some
reason the message never gets stored in my 'Sent Messages' folder - can
anyone suggest a modification to this script which would solve this?
Thanks in advance,
Rob
---The Script Follows---
on open theFiles
set theAddress to "email@hidden"
try
tell application "Microsoft Entourage"
activate
set draftWindow to make new draft window with properties
{subject:"Proofs for your Approval", recipient:theAddress, content:"Blah
Blah Blah"}
repeat with theAttachment in theFiles
make attachment at draftWindow with data
{file:theAttachment} new attachment
end repeat
send draftWindow
end tell
on error
display dialog "The proof was not sent, something went wrong!"
buttons {"OK"} with icon note
end try
end open