Re: Adding a picture attachment to a mail message
Re: Adding a picture attachment to a mail message
- Subject: Re: Adding a picture attachment to a mail message
- From: Simon Forster <email@hidden>
- Date: Mon, 8 Oct 2001 12:52:02 +0100
On Monday, October 8, 2001, at 09:55 am, Steven Lobo wrote:
I am trying to add a attachments to 'Mail.app' using Applescript. This
feature works fine for text documents. But on trying to add pictures
as attachments, this feature fails.
All mail attachments are text. Binary documents (pictures, executables
etc) need to be encoded so that they become text. Usually this is
performed automagically by the email client.
My guess is that Mail is a Cocoa app which relies on services (OS level,
callable tasks) for some of its functionality. Hence, when you drag a
binary attachment onto Mail, Mail calls the OS's underlying 'encode'
function before attaching the binary. It would appear that you'll need
to take care of this encoding task yourself and then attach the encoded
attachment to Mail.
HTH
Simon Forster
________________________________________________
LDML Ltd, 4/5 Hazlitt Mews, London, W14 0JZ, UK
<tel int="+44 20 7602 9370" uk="020 7602 9370">
<fax int="+44 20 7371 6662" uk="020 7371 6662">
<
mailto:email@hidden>
________________________________________________