• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: scripting mail to select mailboxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: scripting mail to select mailboxes (From: "David P. Baker" <email@hidden>)

  • Prev by Date: applescript-implementors
  • Next by Date: Running a script from Mail.app
  • Previous by thread: Re: scripting mail to select mailboxes
  • Next by thread: Re: scripting mail to select mailboxes
  • Index(es):
    • Date
    • Thread