Re: Mail windows
Re: Mail windows
- Subject: Re: Mail windows
- From: Luther Fuller <email@hidden>
- Date: Mon, 16 Feb 2009 15:44:36 -0600
On Feb 16, 2009, at 1:44 PM, Robert Poland wrote: On Feb 16, 2009, at 10: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
Bob Poland - Fort Collins, CO
Got it to work. Can't deal with more than The Inbox and one incoming message. tell application "Mail" tell window id 135 -- secret code for Inbox window, hope it doesn't change set bounds to {50, newT, 750, newB} end tell activate window 2 end tell -- rest of script
I've just verified that 'window id 135' has no special meaning on my Mac. And, since new id numbers seem to be assigned to windows as they are created, I wouldn't expect a window id to have any special meaning. You can do this, for example ...
tell application "Mail" activate set frontViewer to (some message viewer whose index is 1) set bounds of frontViewer to {10, 40, 1000, 1000} 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