Re: Opening a message in Mail
Re: Opening a message in Mail
- Subject: Re: Opening a message in Mail
- From: Michelle Steiner <email@hidden>
- Date: Wed, 22 Apr 2009 11:37:24 -0700
On Apr 22, 2009, at 11:12 AM, Luther Fuller wrote:
A problem with that "necessary" line is that the first message of
the message viewer may not be in the inbox.
True. (inbox was only an example.) A non-empty list of messages must
be visible, therefore, a non-empty mailbox MUST be selected. That's
why the --necessary line is necessary. I'm not sure that this is a
bug, however.
I consider it to be a bug for a number of reasons.
1. There is no valid reason for a mailbox to be selected in the GUI
for the script to work.
2. Even if a mailbox is selected in the GUI, message 1 of the message
viewer may not be in that mailbox. The script actually returns
message 1 of the selected mailbox.
3. If more than one mailboxes are selected, the script sees only the
first mailbox of the selection, and ignores messages in the other
mailboxes, so you can't choose all the mailboxes to get around the
bug. (To test this, use "some message" instead of "message 1" with
more than one mailbox selected; every message opened by the script
will be from that first mailbox.)
Also, I think it is a design flaw that messages are not elements of
the application itself as well as being elements of the message viewer
and of mailboxes; selected messages are an application property (i.e.,
the selection) as well as a property of the message viewer (i.e.,
selected messages); furthermore, outgoing messages are elements of the
application.
-- Michelle
--
"Liberals cannot count on conservatives being associated with
corruption, incompetence or an unpopular war forever."
--Rich Lowery, The National Review
_______________________________________________
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