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

Re: Sending Mail


  • Subject: Re: Sending Mail
  • From: Yvan KOENIG <email@hidden>
  • Date: Tue, 28 Jul 2009 17:37:14 +0200


Le 28 juil. 2009 à 17:21, Mike Lally a écrit :

Hello AppleScript Gurus,
I'm still stumbling my way through Jerry Lee Ford's book and I've hit another of his scripts that for some reason won't work.
This one is about creating an email by AppleScript and I have altered his script to my own addresses.
Anyway this is the script I'm stuck on . . .


tell application "Mail"
	set MessageText to make new outgoing message
	tell MessageText to make new to recipient
	set sender of MessageText to "email@hidden"
	set subject of MessageText to "Mail Script"
	set content of MessageText to " This is an AppleScript mail test"
	set address of recipient of MessageText to "email@hidden"
	send MessageText
end tell


It seems to do everything except address the recipient. As ever, I'd appreciate some help! Thanks


I ran it under 10.4.11 and it behaves flawlessly !

Yvan KOENIG (from FRANCE mardi 28 juillet 2009 17:37:09)



_______________________________________________
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: Sending Mail
      • From: Christopher Stone <email@hidden>
References: 
 >Sending Mail (From: Mike Lally <email@hidden>)

  • Prev by Date: Sending Mail
  • Next by Date: Difficulty Scaling an Image
  • Previous by thread: Sending Mail
  • Next by thread: Re: Sending Mail
  • Index(es):
    • Date
    • Thread