• 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: Tiago Mendo <email@hidden>
  • Date: Mon, 20 Oct 2014 14:27:06 +0100

The following line also does not work in Yosemite

  1. repeat with theAttachment in theMessage's mail 

It simply does not return any attachment so it won't enter the cycle. Has anybody opened a bug report to apple yet?



On 20/10/2014, at 12:00, 2551 <email@hidden> wrote:


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

  • Prev by Date: Script to unencode a GREP token into plain english in (used in InDesign not sure if I got in on Adobe forum ID board).
  • 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