Re: Error getting mail attachments
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