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: Jean-Baptiste LE STANG <email@hidden>
- Date: Thu, 8 May 2003 21:40:05 +0200
This code was given by John Delacour earlier in April :
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
jb
Le jeudi, 8 mai 2003, ` 21:09 Europe/Paris, Daniel Blanken a icrit :
Hey everyone!
I'm kinda experienced with AppleScript (with "kinda" meaning "been
using it
for 6 years now ;)), but I am pretty new to scripting Apple's Mail.app
in OS
X.
I've started writing a handler which creates a new outgoing message
with one
or more recipients, a certain subject line, some text and so on... and
everything works fine, except that I just can't figure out how to
attach one
or more files to a new message.
So, anyone out there willing to help me w/ my little prob? Thanks in
advance!
Daniel Blanken
_______________________________________________
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.
_______________________________________________
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.