Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mail.app save all attachments



It looks like this kind of functionality isn't built into Mail.app's AppleScript dictionary. There is an attachment class but it looks like it is just for text attachments and for creating messages.

So you would probably need to get the raw source for the message and parse out the MIME components, then figure out how to decode those components (usually base64 encoded) and save them. That's a real pain in the arse, but it can be done.

Unless someone sees something that I missed, it looks like there is no easy answer to this.

- Ken

On Dec 29, 2003, at 9:33 AM, stefan r.ernst wrote:

good day!

i'm looking for a proper script that can be attached to a rule in mail.app that, on rule match, saves all the attachments of the mail to a specified folder and then deletes the mail.

i haven't really found any useful info via google/apple.com on that.

any hints/suggestions/solutions would be appreciated,
thanks a lot,
_______________________________________________
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: 
 >mail.app save all attachments (From: "stefan r.ernst" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.