Re: Scripting Mail.app suggestions requested
Re: Scripting Mail.app suggestions requested
- Subject: Re: Scripting Mail.app suggestions requested
- From: Blake Garner <email@hidden>
- Date: Tue, 31 May 2005 19:38:31 -0700
Ok I got it now..
activate application "Mail"
tell application "System Events"
tell process "Mail"
try
click button "clear" of text field 1 of group 6 of tool bar 1 of window (1)
end try
click menu item "In" of menu 1 of menu item "Go To" of menu 1 of
menu bar item "Mailbox" of menu bar 1
try
select row 2 of table 1 of scroll area 1 of splitter group 1 of window 1
end try
try
keystroke "up arrow"
end try
end tell
end tell
---
This script clears any search terms selects the inbox and displays the
newest message. Now I'm going to add it to my mail scripts..
Blake-
On 5/31/05, Blake Garner <email@hidden> wrote:
> I can easily select the second message in the list and use the up
> arrow to display the first message. However I don't know how to have
> applescript "push the up arrow key"..
>
> More suggestions are welcome. I will post if I find and answer...
>
> thanks,
> Blake-
>
> On 5/31/05, Gary (Lists) <email@hidden> wrote:
> > "Blake Garner" wrote:
> >
> > > I have already tried using the GUI scripting to select the first
> > > message in the list by index. But this only selcts the message and
> > > doesn't scroll the window.
> > >
> > > Does anybody have some tricks up their sleve for doing this?
> >
> > In the way of suggestion, and based on my manual (by hand, not GUI) trials,
> > here is a manual action sequence which works, and which might be able to be
> > simulated via GUI.
> >
> > 1. I select the first message in the current sort (the one at the top, that
> > is). (You say you can do this by script, but it might still not actually
> > "select" -- visually -- the item. I don't know.)
> >
> > 2. I scroll the window to very end of the message list, so I am viewing the
> > bottom of the list (just to put me in a state where I need to scroll back
> > up).
> >
> > Okay, so now the "first" (top) is still selected (it's highlighted in the
> > list with my selection color.)
> >
> > 3. Pressing the Down arrow once does, indeed, select the _second_ (from top)
> > message _and_ it scrolls the window to the top (again, the second item is
> > still visually selected.)
> >
> > 4. An Up arrow then selects the first again and does not move the scroll
> > position. I am at the top, with item 1 selected again.
> >
> >
> > If your current work has gotten you to the point, then, where the first
> > (top) item is selected, then it seems that a Down arrow then Up arrow
> > sequence might be tacked on to get you there...(?)
> >
> > HTH,
> > --
> > Gary
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Applescript-users mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
> >
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden