Re: Mail windows
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>) |