• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail and Attachments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Mail and Attachments
      • From: Michelle Steiner <email@hidden>
    • Re: Mail and Attachments
      • From: Tim Mansour <email@hidden>
    • Re: Mail and Attachments
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Mail and Attachments (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Native script spontanesouly going Classic
  • Next by Date: Re: Mail and Attachments
  • Previous by thread: Re: Mail and Attachments
  • Next by thread: Re: Mail and Attachments
  • Index(es):
    • Date
    • Thread