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

Re: Mail attachments


  • Subject: Re: Mail attachments
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 30 Dec 2015 22:21:32 +0100


Le 2015/12/30 à 22:10, Brian Christmas <email@hidden> a écrit :

G’day Yvan

Just a complete guess, but have you tried a delay in the code?

Regards

Santa


Thanks Brian

I really don't guess what a delay may change because at execution time, the instruction :
get every mail attachment of theMessage

is correctly trying to do : get every mail attachment of message id 100683 of mailbox "INBOX" of account "iCloud"

I tried : 

tell application "Mail"
activate
set theMessage to item 1 of (get selection)
delay 0.5
tell theMessage
delay 0.5
get every mail attachment -- of theMessage
end tell


# code saving the attached files on disk
end tell

The events log was :

tell application "Mail"
activate
get selection
get every mail attachment of message id 100683 of mailbox "INBOX" of account "iCloud"

Résultat :

error "Erreur dans Mail : Le gestionnaire AppleEvent a échoué." number -10000


Yvan KOENIG running El Capitan 10.11.2 in French (VALLAURIS, France) mercredi 30 décembre 2015 22:21:12



 _______________________________________________
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

  • Follow-Ups:
    • Re: Mail attachments
      • From: Phil Stokes <email@hidden>
References: 
 >Mail attachments (From: Yvan KOENIG <email@hidden>)
 >Re: Mail attachments (From: Axel Luttgens <email@hidden>)
 >Re: Mail attachments (From: Yvan KOENIG <email@hidden>)
 >Re: Mail attachments (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Mail attachments
  • Next by Date: Re: Mail attachments
  • Previous by thread: Re: Mail attachments
  • Next by thread: Re: Mail attachments
  • Index(es):
    • Date
    • Thread