Re: How To Add Attachments To A Message In Mail.app?
Re: How To Add Attachments To A Message In Mail.app?
- Subject: Re: How To Add Attachments To A Message In Mail.app?
- From: John Delacour <email@hidden>
- Date: Fri, 9 May 2003 08:17:32 +0100
- Mac-eudora-version: 6.0a16
At 9:40 pm +0200 8/5/03, Jean-Baptiste LE STANG wrote:
This code was given by John Delacour earlier in April : ....
I also posted an alternative, which was, in essence:
tell application "Mail"
{visible:true, content:"", subject:"", sender:"", signature:""}
copy the result to pp
set f to {file name:alias "dx:Users:jd:Documents:b.txt"}
tell pp
set subject to "Test"
set content to "Here's that file at last..." & return & return
end tell
set m to make outgoing message with properties pp
tell m's content
set here to a reference to after last paragraph
make attachment at here with properties f
end tell
end tell
At 9:40 pm +0200 8/5/03, Jean-Baptiste LE STANG wrote:
....
tell app "Mail"
set |message| to a reference to outgoing message
set |.| to a reference to end of outgoing messages
activate
set p to {visible:true, subject:"Test", content:"hello"}
set to1 to {name:"test", address:"email@hidden"}
set att1 to {file name:"dx:users:jd:test"}
set m to make |message| at |.| with properties p
tell m
make to recipient at end with properties to1
try
set e to "no error"
make attachment at end with properties att1
on error e
end try
--save
-- -- or
--send
end
end
e
_______________________________________________
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.