• 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.app save all attachments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mail.app save all attachments


  • Subject: Re: mail.app save all attachments
  • From: Graff <email@hidden>
  • Date: Tue, 30 Dec 2003 00:59:44 -0500

Nice one! A very good idea to have Stuffit Expander do the dirty work, it handles this nicely.

The only hiccup I saw was that resource forks get sent base64 encoded as a separate attachment from Mail.app unless you send the attachment as "Windows Friendly". When Stuffit Expander decodes an attachment sent in this manner you end up with 2 files, one named "foo.bar" and the other named "foo.1.bar". The first file is a kind of mangled resource fork and the second is the data fork.

I looked for a simple way to re-merge the two forks and found none. I tried directly copying the contents of first file to the resource fork of the second (it is located at "filename/..namedfork/rsrc") and that didn't seem to work correctly. Anyone else have any idea of how to re-merge a data fork and a resource fork in this kind of situation?

-Ken

On Dec 29, 2003, at 10:16 PM, Andreas Amann wrote:

The following script works - both when run as well as when triggered from a rule in Mail (requires 10.2.3 or higher, including 10.3.x). Requires StuffIt Expander (for decoding the MIME parts)

And, of course, there will be some spurious return characters added by the mailer...
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: mail.app save all attachments (From: Andreas Amann <email@hidden>)

  • Prev by Date: Re: do shell script woes
  • Next by Date: Re: Display Dialog bug in Xcode?
  • Previous by thread: Re: mail.app save all attachments
  • Next by thread: Re: Filter threads for Mail.app (contribution)
  • Index(es):
    • Date
    • Thread