• 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: Adding a message to a mailbox in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding a message to a mailbox in Mail


  • Subject: Re: Adding a message to a mailbox in Mail
  • From: Thierry Faucounau <email@hidden>
  • Date: Sun, 29 Sep 2002 03:52:56 +0200

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?

Thierry

On Saturday, September 28, 2002, at 10:56 PM, Rob Jorgensen wrote:

On 9/28/02, you commented:

Thanks for the suggestions,

I had tried the mailbox as a property with no luck. I get an NSArgumentsWrongScriptError although mailbox is not marked r/o and is a property of message.

make new message with properties {subject:"test", contents:"this is a test"} at end of mailbox (mailbox "test")

Gives me an NSContainerSpecifier error so I tried:

set theMBOX to mailbox "test"
make new message with properties {subject:"test", contents:"this is a test"} at end of theMBOX

Which brought back the familiar NSInternalScriptError.

Does anyone know if this is possible with Mail, it seems Eudora and OE can add mail messages using AppleScript, why can't the built-in mailer?

Does Mail require outgoing/new messages to be in a specific location, such as Drafts or Out?

--

Rob Jorgensen
Ohio, USA
_______________________________________________
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.
_______________________________________________
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: Adding a message to a mailbox in Mail (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: How to do an HTTP POST?
  • Next by Date: Re : Is SMILE the way to go for this?
  • Previous by thread: Re: Adding a message to a mailbox in Mail
  • Next by thread: Re: Adding a message to a mailbox in Mail
  • Index(es):
    • Date
    • Thread