Re: Create New Message script for Apple Mail
Re: Create New Message script for Apple Mail
- Subject: Re: Create New Message script for Apple Mail
- From: Dave Balderstone <email@hidden>
- Date: Thu, 02 Oct 2003 15:02:55 -0600
Without seeing your code, here's the relevant part of the handler I use
in an ASStudio app for our reporters to send digital pix. Watch line
wrap (the end of each line is --)
-----
tell application "Mail"--
activate--
try--
set the_file to item 1 of these_files as alias--
set the new_message to (make new outgoing message with properties
{visible:true, content:theMessage, subject:the_sender})--
tell the new_message--
make new to recipient at end of to recipients with properties
{address:ToAddress}--
tell content--
make new attachment with properties {file name:the_file} at before
the first character--
end tell--
end tell--
end try--
send the new_message--
end tell--
---------
djb
"Quando Omni Flunkus Moritati"
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.