Re: scripting mail to select mailboxes
Re: scripting mail to select mailboxes
- Subject: Re: scripting mail to select mailboxes
- From: John Delacour <email@hidden>
- Date: Thu, 13 Mar 2003 19:13:36 +0000
- Mac-eudora-version: 6.0a11
At 10:04 am -0500 13/3/03, David P. Baker wrote:
Actually, I think I figured out that message viewer 1 is the first
message viewer in order of creation (in what must be an array of
viewers), but the WINDOWS are in front-to-back order (although the
dictionary says "back-to-front order"). So if message viewer A is
the front window, then window 1 = window of message viewer A. That
should clear up your problem with ordering of message viewers..
I have no problem! Mail has the problem because Mail is rewriting
all the rules. Window 1 has always been the front window and the
latest created, document ditto. It is ridiculous to expect users to
regard as reasonable a back-to-front arrangement of message viewers,
which after all are just windows with special properties. It's
debatable whether the class is necessary at all, just as 'all
messages' has been declared redundant. No discipline is evident in
the whole spitting match.
tell application "Mail"
close windows
repeat 4 times
make message viewer
end repeat
set ls to {return}
repeat with i from 1 to 4
set end of ls to {id of window of message viewer i, id of window i}
set end of ls to return
end repeat
return ls
end tell
{"
", {2306, 2320}, "
", {2312, 2316}, "
", {2316, 2312}, "
", {2320, 2306}, "
"}
_______________________________________________
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.