Scripting mail attachments in Yosemite
Scripting mail attachments in Yosemite
- Subject: Scripting mail attachments in Yosemite
- From: Michael Grant <email@hidden>
- Date: Thu, 09 Oct 2014 15:12:58 -0500
Scripts referencing the 'mail attachment' element of a Mail.app message seem to be broken in Yosemite (14A386b, Mail 8.0 (1990.1)). W
ith a message that contains an attachment selected, the script below returns
error "Mail got an error: AppleEvent handler failed." number -10000:
tell application "Mail"
set theMessages to the selection
repeat with eachMessage in theMessages
return mail attachments of eachMessage
end repeat
end tell
If I replace 'mail attachments' with a different element such as recipients or headers, the script works as expected.
Is anyone successfully using AppleScript to save attachments in Yosemite?
Thanks,
Michael
--
There's really no such thing as translating. It's all a scam. We basically just make stuff up and try to make it sound plausible.
_______________________________________________
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