• 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: Oldest Message in Mail's Trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Oldest Message in Mail's Trash


  • Subject: Re: Oldest Message in Mail's Trash
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 30 Jun 2008 13:59:42 -0500

Yesterday, I said ...
The line 'message -1 of frontViewer', when used with Inbox, Sent, Trash and Junk ALWAYS refers to the OLDEST message in SOME account of that mailbox.

Only to find, when I started-up this morning, that my script was not working. After a couple more hours of more experimenting, I found that 'message -1' was now the youngest, not the oldest message.


I also said ...
So, what does the dictionary have to say about this? I looked and found that using indexes this way isn't documented.

The reason it's not documented seems to be because it does not work.

So, now I'm stuck with the line ...

	set msgList to (visible messages of frontViewer)

which does seem to always work properly. I'm still curious what trouble I might encounter when this list contains thousands of items. (msgList is a temporary variable, so I do set it to {} when I'm finished with it.)

_______________________________________________
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
References: 
 >Oldest Message in Mail's Trash (From: Luther Fuller <email@hidden>)
 >Re: Oldest Message in Mail's Trash (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: [Q] Bunch of memory leak message
  • Next by Date: Looking for wrong computer
  • Previous by thread: Re: Oldest Message in Mail's Trash
  • Next by thread: Database Events problem
  • Index(es):
    • Date
    • Thread