• 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: Applescript count mail attachment error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Applescript count mail attachment error (From: Fred Diepeveen <email@hidden>)

  • Prev by Date: Re: Applescript count mail attachment error
  • Next by Date: Re: AppleScript is now deliberately annoying me to death
  • Previous by thread: Re: Applescript count mail attachment error
  • Next by thread: AppleScript is now deliberately annoying me to death
  • Index(es):
    • Date
    • Thread