• 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
Creating mail message with signature
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating mail message with signature


  • Subject: Creating mail message with signature
  • From: Neil Faiman <email@hidden>
  • Date: Fri, 16 Nov 2007 07:58:48 -0500

For years, I've been using this command to tell Mail to create a new mail message:

	tell application "Mail"
		make new outgoing message with properties {
			subject:"The subject",
			content:"The message",
			sender:"Wilton ZBA <email@hiddenn>",
			message signature:signature "ZBA Chair"}

Now, under Leopard, it creates the message, fills in the body and the sender, and then dies with the error "Mail got an error: AppleEvent handler failure.". The problem is apparently the "message signature" property. If I remove that from the "with properties" record, and add the line

		set message signature of the result to signature "ZBA Chair"

it works.

	-Neil Faiman

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: Choose from list Bug
  • Next by Date: Did 10.4.11 kill applescript?
  • Previous by thread: Re: Set Date & Time Automatically preference
  • Next by thread: Did 10.4.11 kill applescript?
  • Index(es):
    • Date
    • Thread