Re: Applescript count mail attachment error
Re: Applescript count mail attachment error
- Subject: Re: Applescript count mail attachment error
- From: Axel Luttgens <email@hidden>
- Date: Fri, 04 Mar 2016 23:01:35 +0100
> Le 3 mars 2016 à 15:51, Fred Diepeveen a écrit :
>
> […]
>
> Mail kreeg een fout: AppleEvent-handler mislukt. (Mail error: AppleEvent-handler failed)
> Resultaat:
> error "Mail kreeg een fout: AppleEvent-handler mislukt." number -10000
>
> There is an attachment. The count gives an error. See underline
>
> The script is like this
>
> […]
> if (count of (theMessage’s mail attachments)) > 0 then
> […]
Hello Fred,
Can’t reproduce your problem here on Yosemite with a minimal script:
tell application "Mail"
set theMessage to message 7 of mailbox "INBOX" of account "SomeAccount"
count of (theMessage's mail attachments)
end tell
I tried with "SomeAccount" set to the name of a pop, imap, gmail, iCloud account.
As well as with the message number pointing to a message with or without attachment(s).
What kind of account is your "demomycardwallet" account?
Does above snippet raise the error too?
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