Let's assume that in the following code
tell application "Mail"
tell first account
tell first mailbox
set myMessage to first message
set myAttachment to mail attachments of myMessage
The exact syntax is "mail attachement of myMessage" (without "s"). The script bellow is working perfectly on my side for selected emails :
tell application "Mail" activate set ListMessage to selection repeat with aMessage in ListMessage set AList to every mail attachment of aMessage repeat with aFile in AList if (downloaded of aFile) then -- do something with aFile end if end repeat -- next file end repeat -- next message
Are you sure the the message with attachement is in your first account/first mailbox ?