• 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: Sat, 28 Jun 2008 17:00:05 -0500

On Jun 28, 2008, at 4:31 PM, Michelle Steiner wrote:
On Jun 28, 2008, at 2:27 PM, Luther Fuller wrote:

set sort column of (some message viewer whose index is 1) to date sent column

I'm curious, why not this:

set sort column of message viewer 1 to date sent column


Good question ... and I seem to vaguely remember a good answer. (Pause here while I do a little Spotlighting.)

Ah Ha! Found it!

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.

So, the answer is "I am now using Leopard, but I want my script to continue to work in Tiger."


_______________________________________________
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>)
 >Re: Oldest Message in Mail's Trash (From: Luther Fuller <email@hidden>)
 >Re: Oldest Message in Mail's Trash (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Oldest Message in Mail's Trash
  • Next by Date: Re: set "busy status" ?
  • Previous by thread: Re: Oldest Message in Mail's Trash
  • Next by thread: Re: Oldest Message in Mail's Trash
  • Index(es):
    • Date
    • Thread