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

Adding a message to a mailbox in Mail


  • Subject: Adding a message to a mailbox in Mail
  • From: Thierry Faucounau <email@hidden>
  • Date: Sat, 28 Sep 2002 06:59:15 +0200

Hi,

I have searched the web and archives and still can not find a way to add a message programatically to a mailbox using applescript.

I would have thought something like this would work:

tell application "Mail" to make new message in mailbox (mailbox "test") with properties {subject:"test subject", contents:"test contents"}

but I get:

make new message with properties {subject:"test", contents:"this is a test"} at mailbox (mailbox "test")
--> Mail got an error: NSInternalScriptError

In the Script Editor Event Log.

I have tried countless variations (including ones that throw no errors but create no messages).

What am I missing?

Thierry Faucounau
XCubed Software, Inc.
http://www.xcubedsoftware.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.

  • Follow-Ups:
    • Re: Adding a message to a mailbox in Mail
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: Is SMILE the way to go for this?
  • Next by Date: Re: Turn an AppleScript into a .app bundle?
  • Previous by thread: Re: Is SMILE the way to go for this?
  • Next by thread: Re: Adding a message to a mailbox in Mail
  • Index(es):
    • Date
    • Thread