• 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: Mail windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail windows


  • Subject: Re: Mail windows
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 17 Feb 2009 13:32:49 -0600

On Feb 17, 2009, at 12:41 PM, Michelle Steiner wrote:

First of all, you have to identify the nature of the windows.  For instance, the window that contains the list of mailboxes on the left 

The list of mailboxes may not be visible, as in ...

set mailbox list visible of message viewer 1 to false

But, I've just run into a big bad bug. The line above does not work!

Run this script ...

tell application "Mail"
activate
set frontViewer to (some message viewer whose index is 1)
set selected mailboxes of frontViewer to {inbox}
try
set mailbox list visible of some message viewer to false
on error
beep
end try
end tell

The property 'mailbox list visible' seems to be broken. If you manually hide the mailbox list on the left, you will get a window named "Inbox (nn messages)" that will look like an Inbox window. BUT, IT'S NOT! It's a message viewer.

Also, I'll bug report the 'mailbox list visible' if it is a problem on more than just my Mac (10.5.6). Let me know. The error I get is -10000 "Mail got an error: AppleEvent handler failed."

 _______________________________________________
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

  • Follow-Ups:
    • Re: Mail windows
      • From: Michelle Steiner <email@hidden>
References: 
 >Mail windows (From: Robert Poland <email@hidden>)
 >Re: Mail windows (From: Robert Poland <email@hidden>)
 >Re: Mail windows (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Mail windows
  • Next by Date: Weird iTunes Problem
  • Previous by thread: Re: Mail windows
  • Next by thread: Re: Mail windows
  • Index(es):
    • Date
    • Thread