Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting existing mail account



Thanks Peter,

I checked my script again because I thougt I had scripted it like you suggested. 
But, mea culpa, I made a stupid mistake: In my ongoing script, I removed from the addressX  the last dot in order to identify the address for better finding the proper signature belonging to this very address for the message !
And I forgot to replace the dot, so I didn't use a proper address at all!

Sorry and thanks again

Jobst

___________________________________

Jobst Gmeiner
email@hidden
http://www.gmeinerjj.de


Am 30.03.2007 um 18:20 schrieb Peter Baxter:

Hi Jobst,

You could avoid the mail error by using an existing account as shown below.

tell application "Mail"
set everyAccount to every account
set AddressX to item 1 of everyAccount
set theNewMessage to make new outgoing message with properties {subject:"TopicX", content:"TextX", visible:true, sender:AddressX}
end tell

Peter Baxter
Director of Music
Ararat Community College
Barkly St West
Ararat
Victoria
3377
Ph: 0353524177

email:  email@hidden

"If a child hears good music from the day of birth, the child develops sensitivity, discipline and endurance as well as a beautiful heart."
-- Shinichi Suzuki, music teacher






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Selecting existing mail account (From: Jobst Gmeiner <email@hidden>)
 >Re: Selecting existing mail account (From: Peter Baxter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.