• 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
Mail: save attachment fails in Mountain Lion 10.8.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Mail: save attachment fails in Mountain Lion 10.8.2
      • From: Lists <email@hidden>
  • Prev by Date: Re: Snow Leopard/QuarkXpress Issue
  • Next by Date: Re: Snow Leopard/QuarkXpress Issue
  • Previous by thread: Re: Snow Leopard/QuarkXpress Issue
  • Next by thread: Re: Mail: save attachment fails in Mountain Lion 10.8.2
  • Index(es):
    • Date
    • Thread