• 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: Scripting mail attachments in Yosemite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting mail attachments in Yosemite


  • Subject: Re: Scripting mail attachments in Yosemite
  • From: 2551 <email@hidden>
  • Date: Mon, 20 Oct 2014 18:00:42 +0700


On 20 Oct 2014, at 17:42, Tiago Mendo <email@hidden> wrote:
Do you have any idea on how to iterate over the attachments?


I haven't tried this in Yosemite, but it used to work in Mavericks:





  1. tell application "Mail"
  2.                         set selectedMessages to theMessages
  3.                         try
  4.                                 repeat with theMessage in selectedMessages
    repeat with theAttachment in theMessage's mail attachments
  5.                                                 //do something
  6.                                         end repeat
  7.                                 end repeat
  8.                         end try
  9.                         
  10.                 end tell



Phil.


 _______________________________________________
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: Scripting mail attachments in Yosemite
      • From: Tiago Mendo <email@hidden>
    • Re: Scripting mail attachments in Yosemite
      • From: markhunte <email@hidden>
References: 
 >Re: Scripting mail attachments in Yosemite (From: Tiago Mendo <email@hidden>)

  • Prev by Date: Re: Scripting mail attachments in Yosemite
  • Next by Date: Re: Scripting mail attachments in Yosemite
  • Previous by thread: Re: Scripting mail attachments in Yosemite
  • Next by thread: Re: Scripting mail attachments in Yosemite
  • Index(es):
    • Date
    • Thread