Re: Oldest Message in Mail's Trash
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