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: Adding a message to a mailbox in Mail



The example scripts are pretty thorough -- you're just trying to do
something that is not possible in the UI -- that is, create a message
out of thin air and put in into a mailbox.

Your best bet is to convert to mbox format and mimick the folder
organization style that Mail uses for storing local mailboxes in
~/Library/Mail.

Here's an old import script that pulls in mbox files. It used to work a
few years back. I haven't verified it now, but it should give you some
ideas on how to pull it off.

- cricket

[demime 0.98b removed an attachment of type application/applefile which had a name of Import standard mbox]
On Saturday, September 28, 2002, at 06:52 PM, Thierry Faucounau wrote:

> I'm actually not trying to create an outgoing message, that seems to
> work with
>
> make new outgoing message
>
> The app I am working on converts proprietary mailbox formats to mbox
> format. I am using AppleScript to save the user from having to
> manually import the resulting maiboxes and to take advantage of the
> fact that I have extracted various other meta information (like
> whether the message was read, replied to, etc...).
>
> So what I am trying to do is populate a mailbox with messages that are
> not meant to be sent.
>
> On that note, it seems that apart from the very terse Mail dictionary
> and the example scripts provided in /Application/AppleScript/Example
> Scripts/Mail Scripts there is precious little in the way of
> documentation of Mail's AppleScript capabilities. Does anyone from
> Apple follow this list? Is there some document I have yet to find?

----->
Software Entomologist/Mail for Mac OS X email@hidden
---------->
http://www.explodingdog.com/
_______________________________________________
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.



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.