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

Re: Mail to recipients


  • Subject: Re: Mail to recipients
  • From: cricket <email@hidden>
  • Date: Tue, 18 Feb 2003 10:37:24 -0800

Freaky. I was able to get this to work correctly. The only thing I can think of is maybe the comma in the name property is throwing it off.

- cricket

On Monday, February 17, 2003, at 19:39PM, Larry Staton Jr. wrote:

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.
_______________________________________________
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.

References: 
 >Mail to recipients (From: "Larry Staton Jr." <email@hidden>)

  • Prev by Date: Safari and system AppleScript menu
  • Next by Date: log?
  • Previous by thread: Mail to recipients
  • Next by thread: Clickable text in a text field
  • Index(es):
    • Date
    • Thread