I’m trying to create a script that will be triggered by a mail rule as an auto responder. Basically I’m expecting it to send an email out that states:
“We received your email at 12:00pm
there was an attachment named attachmentname.ext which was xxxxkilobytes in size”
this statement:
set attName to name of attachment of msg
gets this error:
“Mail got an error: Can’t make name of attachment of message id 8450 of mailbox "INBOX" of account "steve.blethen@lazerset.com" into type reference.”
same goes for all of the other attachment references…
set attName to name of attachment of msg
set attType to attachment MIME type of msg
set attSize to attachment file size of msg
set attDown to attachment downloaded of msg
any help?