Re: newbie( Mail App)
Re: newbie( Mail App)
- Subject: Re: newbie( Mail App)
- From: Jean-Baptiste LE STANG <email@hidden>
- Date: Mon, 14 Apr 2003 22:22:34 +0200
Why not simply using the following because, the displayed message is
the first one selected no?
tell application "Mail"
get sender of first item of (get selection)
end tell
JB
Le lundi, 14 avr 2003, ` 20:35 Europe/Paris, John Delacour a icrit :
At 10:00 am -0700 14/4/03, cricket wrote:
This is a good place to ask questions if you can put up with the
pathological hatred of Mail that some people have on this list.
Here's a question from one of them:
In any sane mailer it is possible to get the properties of the message
displayed in the front window using simple age-old syntax. Among the
small collection of scripts delivered with Mail.app, there is not one
which attempt this task, which appears to be impossible in Mail.
Perhaps you can also explain these errors, especially the error in the
last line. If you say that a loop is necessary, then I say that is
ought not to be and that it is not in the Finder or Outlook Express or
any modern app.
tell application "Mail"
try
get focused messages
on error e
e
end try
--> "NSCannotCreateScriptCommandError"
try
get sender of focused messages in the front message viewer
on error e
e
end try
--> "NSCannotCreateScriptCommandError"
try
get sender of (get focused messages in the front message viewer)
on error e
e
end try
--> "Can't get sender of {message 76 of mailbox.....}
end tell
_______________________________________________
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.
_______________________________________________
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.