• 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: Error getting mail attachments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error getting mail attachments


  • Subject: Re: Error getting mail attachments
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 15 Dec 2016 08:52:08 +0100

> Le 15 déc. 2016 à 03:37, David Crowe a écrit :

Hello David,


> I used to be able to get mail attachments and manipulate them, but now (El Capitan, Mail 9.3)

Same here…

> I cannot. Here is a script that illustrates the problem:
>
>
> tell application "Mail"
> 	set theList to selection --> {message id 91500 of mailbox "INBOX" of account "IFAST" of application "Mail"}
> 	repeat with aMessage in theList
> 		return mail attachments of aMessage --> error "Mail got an error: AppleEvent handler failed." number -10000
> 	end repeat
> end tell

… but above code works as expected, both on messages with attachments and on messages without any attachment.

Axel


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Prev by Date: [ANN] HelpBook.osax 1.2 : Display Help Books of any bundles in Help Viewer.
  • Next by Date: Re: Error getting mail attachments
  • Previous by thread: [ANN] HelpBook.osax 1.2 : Display Help Books of any bundles in Help Viewer.
  • Next by thread: Re: Error getting mail attachments
  • Index(es):
    • Date
    • Thread