Re: Mail.app
Re: Mail.app
- Subject: Re: Mail.app
- From: cricket <email@hidden>
- Date: Thu, 29 Aug 2002 11:52:45 -0700
On Thursday, August 29, 2002, at 11:00 AM, Manfred M. Strasser wrote:
Have anyone an idea how I can get the sender name und the sender
emailadress from an incoming message?
set x to the sender
returns something like this "John Doe <email@hidden>"
Are you wanting to get or set the sender of an incoming message?
To get the sender of a selected message, you can do this:
tell application "Mail"
set theSelection to selection
set theMessage to item 1 of theSelection
get sender of theMessage
end tell
You cannot set the sender of an incoming message. If you compose a
_new_ message, you can set the sending account. See the example scripts
at this location for reference:
file://localhost/Library/Scripts/Mail Scripts/
NOTE: This advice and these scripts work on 10.2 only. I noticed you
are using 10.2 Mail from your headers, so this should work for you.
- cricket
----->
Software Entomologist/Mail for Mac OS X email@hidden
---------->
There is no snare like folly, there is no torrent like greed...
_______________________________________________
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.app (From: "Manfred M. Strasser" <email@hidden>) |