• 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 script not working on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail script not working on Leopard


  • Subject: Mail script not working on Leopard
  • From: Alan Fairlie <email@hidden>
  • Date: Thu, 10 Apr 2008 15:58:41 +1000

The following script works on Tiger but not on Leopard.

tell application "Mail"
set newMsg to make new outgoing message
tell newMsg to make new to recipient
tell newMsg to make new cc recipient


set sender of newMsg to "address1"
set subject of newMsg to "Subject"
set content of newMsg to "content"
set address of first to recipient of newMsg to "address2"
set address of first cc recipient of newMsg to "address1"
send newMsg
end tell

error log

"Mail got an error: Can’t get to recipient 1 of outgoing message id 375171936. Invalid index."

Any help would be appreciated.

Alan.
A


 _______________________________________________
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: Mail script not working on Leopard
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: What is the limit on osascript command ?
  • Next by Date: Another Mail question...
  • Previous by thread: Re: What is the limit on osascript command ?
  • Next by thread: Re: Mail script not working on Leopard
  • Index(es):
    • Date
    • Thread