• 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: Mon, 16 Feb 2009 13:41:58 -0600

On Feb 16, 2009, at 11:54 AM, Robert Poland wrote:

Wizards,

How does one identify the Inbox and Message windows.

Since the Mail windows seem to wander a lot (mainly the Message window) I made a script that re-positions the Message window.

Currently whichever window is frontmost gets the positioning action. 

I would like to add the Inbox window to this script but can't seem to identify it.

Tried;
tell (window id 135)
tell window "Inbox (15 messages)" -- name at top of window
tell window 1
tell window 2

You don't. What you do, in my experience, is something like this ...

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

Now that you have a message viewer identified, it has a window whose properties you can get and set.
If you want to specifically see the contents of the inbox displayed in the message viewer, you use the command ...

tell application "Mail"
activate
set frontViewer to (some message viewer whose index is 1)
set selected mailboxes of frontViewer to {inbox}
end tell

 _______________________________________________
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: 
 >Mail windows (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: eyeBeam & AppleScript
  • Next by Date: Re: Mail windows
  • Previous by thread: Mail windows
  • Next by thread: Re: Mail windows
  • Index(es):
    • Date
    • Thread