Re: Frontmost Message Viewer
Re: Frontmost Message Viewer
- Subject: Re: Frontmost Message Viewer
- From: Luther Fuller <email@hidden>
- Date: Sun, 30 Dec 2007 08:29:10 -0600
On Dec 29, 2007, at 8:33 PM, Norman Cohen wrote:
You don't need the word "index" before "viewerIndex". Try the
following instead:
tell application "Mail"
set viewerIndex to (count message viewers)
set selected mailboxes of (message viewer viewerIndex) to {mailbox
"_Action ! ! ! ! ! !"}
end tell
It worked for me on 10.5.1 Leopard.
To which I replied ...
I just tried that about two minutes ago. No, it did not work. But,
I'm using 10.4.11. It's nice that it works in 10.5.1, but I need to
solve this problem for Tiger.
This morning, I continued trying variations on this theme. I finally
tried this ...
tell application "Mail"
set frontViewer to (some message viewer whose index is 1)
set selected mailboxes of frontViewer to {mailbox
"_Action ! ! ! ! ! !"}
which does work correctly in Tiger. Using "whose" seems to be the key
to this work-around. None of the other variations that have been
recommended to me worked. This must be a bug in Tiger's Mail that has
been fixed in Leopard's Mail.
_______________________________________________
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