• 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
Mail to recipients
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail to recipients


  • Subject: Mail to recipients
  • From: "Larry Staton Jr." <email@hidden>
  • Date: Mon, 17 Feb 2003 22:39:05 -0500

I copied the following from Apple's example Mail Scripts.

-- CODE --
tell application "Mail"
set newMessage to make new outgoing message with properties {subject:"Close panel in iCal", content:"I received the following error: " & return & return}
tell newMessage
set visible to true
make new to recipient at end of to recipients with properties {address:"email@hidden", name:"Larry Staton, Jr."}
end tell
-- return {name, address} of to recipient 1 of newMessage
send
end tell
-- END CODE --

This script fails to display the "to recipient" name or address in the To: field. When I ask for the return values, Script Editor returns the proper values of name and address.

Any thoughts? TIA.
--
Larry Staton Jr.
E-mail/iChat: email@hidden
AIM: lstatonjr
http://www.statonlaw.net/weblog/

Brought to you by Mail on Mac OS X
Public PGP Key available upon request
_______________________________________________
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: Mail to recipients
      • From: cricket <email@hidden>
  • Prev by Date: Re: Newbie Question: Script Objects (1)
  • Next by Date: Re: loop to build a list?
  • Previous by thread: Re: Newbie Question: Script Objects (1)
  • Next by thread: Re: Mail to recipients
  • Index(es):
    • Date
    • Thread