Re: Mail and Attachments
Re: Mail and Attachments
- Subject: Re: Mail and Attachments
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 25 Aug 2005 17:16:48 -0700
- Thread-topic: Mail and Attachments
On 8/25/05 4:45 PM, "Michelle Steiner" <email@hidden> wrote:
>
> On Aug 25, 2005, at 4:02 PM, Shane Stanley wrote:
>
>>> In Mail, an attachment is not an element of a message, it is an
>>> element of the content of a message.
>>
>> <sound of penny dropping> I'm curious about how you discovered
>> this; am I
>> missing something in the dictionary?
>
> It is in the dictionary, but is not obvious.
>
> Content is defined as type string; string is text. the dictionary
> for text shows that one of the elements of text is attachment.
>
Interesting: that's how Cocoa defines "attachments" (usually files), for
example in NSText in Objective-C.
It seems totally perverse to use that structure for an attachment to an
_email message_, though! I suppose when you think about the encoded message
being nothing but (encoded) text, it makes some sort of weird sense. But
definitely sick to use that structure instead of making the AppleScript
object model correspond to the UI where you add attachments to the message,
not to the text. Typical of Mail scripting. Yucch.
> Further, the dictionary for message does not show attachment as an
> element
That's the perverse part.
>
> Besides, way back when, Chris Nebel or Cricket or someone else
> involved with mail and Applescript told us. <g>
Hmmmm.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden