• 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: "Automated Workflows, LLC Mailing Lists" <email@hidden>
  • Date: Thu, 25 Aug 2005 21:11:48 -0400

On Aug 25, 2005, at 8:22 PM, Shane Stanley wrote:

On 26/8/05 10:16 AM, "Paul Berkowitz" <email@hidden> wrote:


It seems totally perverse to use that structure for an attachment to an
_email message_, though!



Right.

I agree as well. Like most scriptable Mail clients, an attachment should really be considered an element of a message. Although, when you create a message manually with an attachment, Mail does seem to insert the attachment into the content of the message.


Another thing that is interesting is that my code did not seem to work in Panther, to my recollection. I'd need to test again to be sure. I figured this all out a few weeks back, while working on a forthcoming MacTECH article on scripting Mail.

Furthermore, I have found that there are still some oddities with retrieving attachments in this manner. For example, Mail often seems to incorrectly report attachments. For example, I just ran code to retrieve the attachments of the content of a single message, one that had 1 attachment, and this is what I got...

{application "Mail", «class attc» id "2" of message id 4208 of mailbox "TEST" of application "Mail"}

Note the result lists two attachments, the first being the application "Mail". Anyway, this is why I used a try statement in my code, to basically ignore these "false" attachments.

-Ben

Benjamin S. Waldie
President & CEO
Automated Workflows, LLC
610.935.0652
=============================================
AppleScript and Workflow Automation
Consulting - <http://www.automatedworkflows.com>
AppleScript Info - <http://www.applescriptguru.com>
AppleScript Training - <http://www.applescripttraining.com>
=============================================

_______________________________________________
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: Neil Faiman <email@hidden>
    • Re: Mail and Attachments
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Mail and Attachments (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Determining when mail has been sent
  • 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