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

Re: Mail: save attachment fails in Mountain Lion 10.8.2


  • Subject: Re: Mail: save attachment fails in Mountain Lion 10.8.2
  • From: Lists <email@hidden>
  • Date: Tue, 25 Sep 2012 15:35:21 -0700

10.8.2 - Just checked my similar script - It's hosed. I'll work on it later when I have more time. I did note in the script replies that "path to documents folder" is returning very strange results???

J

On Sep 24, 2012, at 5:00 AM, Neil Faiman <email@hidden> wrote:

> 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


 _______________________________________________
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: Neil Faiman <email@hidden>
References: 
 >Mail: save attachment fails in Mountain Lion 10.8.2 (From: Neil Faiman <email@hidden>)

  • Prev by Date: Entourage to Outlook snafu
  • Next by Date: Re: Mail: save attachment fails in Mountain Lion 10.8.2
  • Previous by thread: Mail: save attachment fails in Mountain Lion 10.8.2
  • Next by thread: Re: Mail: save attachment fails in Mountain Lion 10.8.2
  • Index(es):
    • Date
    • Thread