Mail: save attachment fails in Mountain Lion 10.8.2
Mail: save attachment fails in Mountain Lion 10.8.2
- Subject: Mail: save attachment fails in Mountain Lion 10.8.2
- From: Neil Faiman <email@hidden>
- Date: Mon, 24 Sep 2012 08:00:30 -0400
I've been using this code for many years; after updating to 10.8.2, it now fails.
Here is a simple reproducer:
tell application "System Events"
set desktopFolder to path of desktop folder
end tell
tell application "Mail"
set theMessage to item 1 of (get selection)
set anAttachment to mail attachment 1 of theMessage
set destination to desktopFolder & (name of anAttachment)
display dialog destination
try
save anAttachment in destination
on error the error_message number the error_number
display dialog "Error: " & the error_number & ". " & the error_message buttons {"Cancel"} default button 1
end try
end tell
The "display dialog destination" shows "Macintosh HD:Users:neil:Desktop:ZBA Minutes 061212 final.doc".
The "on error" clause displays "Error: -10000. Mail got an error: AppleEvent handler failed."
Does anyone else have any experience like this?
Thanks,
Neil Faiman
_______________________________________________
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