Re: Frontmost Message Viewer
Re: Frontmost Message Viewer
- Subject: Re: Frontmost Message Viewer
- From: Michelle Steiner <email@hidden>
- Date: Sat, 29 Dec 2007 20:56:02 -0700
On Dec 29, 2007, at 7:22 PM, Luther Fuller wrote:
So, the frontmost message viewer should be the one with the largest
index. If I wanted to select a mailbox in the frontmost message
viewer, I should be able to run ..
Windows are always numbered front to back, so the frontmost window is
always window 1.
What I need to do is get the selected mailboxes or messages of the
FRONTMOST message viewer window. There does not seem to be any way
do do this. I smell a bug here. But, maybe, someone knows something
I've missed. I hope!
"front window", "first window" and "window 1" are all the same.
The indexing of message viewers is assigned as new message view
windows are opened. The first viewer created has index = 1, the next
has index = 2, ... &c. and these indexes do not change. The oldest
viewer window has index 1, ALWAYS. The youngest window has the index
= (count message viewers), ALWAYS. The indexes only change when
viewer windows are opened or closed. The "back-to-front window
ordering" is ignored.
You're not addressing the windows here, you're addressing the message
viewers, which are numbered in the order in which they are created.
This might help you get on the right path:
tell application "Mail"
index of windows of message viewers
end tell
The smallest number in the list returned by that code fragment will be
the frontmost message viewer window.
I don't have time right now to pursue it any further; I'm about to
leave the house.
-- Michelle
--
Are you better off today than you were on Jan 20th, 2001?
_______________________________________________
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