Re: newbie( Mail App)
Re: newbie( Mail App)
- Subject: Re: newbie( Mail App)
- From: david <email@hidden>
- Date: Mon, 14 Apr 2003 23:04:56 -0400
On Monday, April 14, 2003, at 02:35 PM, John Delacour wrote:
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
sorry about the first email - slipped, glad it wasn't a loaded gun!
this works for all messages in mailbox "INBOX" of account "accountName"
get sender of messages of mailbox "INBOX" of account "accountName"
you can grap individual messages if you know the correct message number
get sender of message 17 of mailbox "INBOX" of account "accountName"
david in maine
--
When I was younger, I could remember anything
...whether it happened or not.
~ Mark Twain
_______________________________________________
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.