• 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
"outgoing message" and "message" classes in Mail's AppleScript dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"outgoing message" and "message" classes in Mail's AppleScript dictionary


  • Subject: "outgoing message" and "message" classes in Mail's AppleScript dictionary
  • From: Jashanjeet Singh <email@hidden>
  • Date: Mon, 26 Jul 2010 23:11:56 +0530

Hi,
Mail's AppleScript dictionary has following two classes "outgoing
message" and "message"

I can make "outgoing message" by using the below code
tell application "Mail"
	make new outgoing message with properties {visible:true, subject:"My
Subject", content:"My test content"}
end tell

but when I try to make "message" object
tell application "Mail"
	make new message with properties {subject:"My Subject", content:"My
test content"}
end tell
than I get error "Mail got an error: Can’t make or move that element
into that container." number -10024

Why I cannot create "message" object?
I am trying of create "message" object because I want to set "date
sent" field in the "message".  And I cannot set "date sent" field in
"outgoing message".
Can I create object of type "message"?
or
Do we have any way to set  "date sent" field in newly created
"outgoing message".

Thanks
Jashan
 _______________________________________________
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

  • Follow-Ups:
    • Re: "outgoing message" and "message" classes in Mail's AppleScript dictionary
      • From: André Renault <email@hidden>
  • Prev by Date: Re: Sort Array by Column X
  • Next by Date: Re: Has anyone created a script for AD 2008 home and shares in OS X.5/6?
  • Previous by thread: Re: NoteTaker script - help needed
  • Next by thread: Re: "outgoing message" and "message" classes in Mail's AppleScript dictionary
  • Index(es):
    • Date
    • Thread