• 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: Getting Existing Outgoing Message in Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Existing Outgoing Message in Mail.app


  • Subject: Re: Getting Existing Outgoing Message in Mail.app
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 21 Dec 2007 18:36:14 -0700

On Dec 21, 2007, at 1:30 PM, Luther Fuller wrote:

Tell application "Mail"
outgoing message
end tell
Does not create a new message. I've just spent about half an hour reading Mail's dictionary to find the command to create a new message. (Surely, one can do that!) 

You're trying too hard.

tell application "Mail"
activate
set newMsg to (make new outgoing message with properties {visible:true, subject:"my subject", content:"Hello World"})
tell newMsg
make new to recipient with properties {name:"Michelle Steiner", address:"email@hidden"}
make new to recipient with properties {address:"email@hidden", name:"applescript users"}
end tell
end tell

-- 
"As democracy is perfected, the office of president represents, more and more closely, the inner soul of the people. On some great and glorious day the plain folks of the land will reach their heart's desire at last and the White House will be adorned by a downright moron."

.... H.L. Mencken ... 

 _______________________________________________
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: Getting Existing Outgoing Message in Mail.app
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Getting Existing Outgoing Message in Mail.app (From: Jeff Cooper <email@hidden>)
 >Re: Getting Existing Outgoing Message in Mail.app (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: ISO time "class"
  • Next by Date: Address Book removing a phone number/label
  • Previous by thread: Re: Getting Existing Outgoing Message in Mail.app
  • Next by thread: Re: Getting Existing Outgoing Message in Mail.app
  • Index(es):
    • Date
    • Thread