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: Wed, 1 Jun 2005 10:34:28 -0700
Yea that works as well. Good to know about manipulating the scroll
bars as well.
Although now that the script is working I am disappointed with two aspects.
1. the script takes 4-8 seconds to complete on a 1.5Ghz powerbook due
to the large number of messages.
2. freaking apple removed the script menu support from mail.app so I
can't assign a command key to the script. Funny how that functionality
is still listed in the help for mail..
Blake-
On 5/31/05, Daniel Jalkut <email@hidden> wrote:
> Hi Blake - perhaps a better (at least more concise) solution for the
> select + scroll part of your script:
>
> select row 2 of table 1 of scroll area 1 of splitter group 1
> of window 1
> set value of scroll bar 1 of scroll area 1 of splitter group
> 1 of front window to 0.0
>
> Daniel
>
> On May 31, 2005, at 7:38 PM, Blake Garner wrote:
>
> > 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 (Applescript-
> >>> email@hidden)
> >>> Help/Unsubscribe/Update your Subscription:
> >>> email@hidden
> >>>
> >>> This email sent to email@hidden
> >>>
> >>>
> >>
> >>
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Applescript-users mailing list (Applescript-
> > email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > 40red-sweater.com
> >
> > 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