Re: Home to top of the list.
Re: Home to top of the list.
- Subject: Re: Home to top of the list.
- From: Robert Poland <email@hidden>
- Date: Sat, 16 May 2009 15:43:28 -0600
Thanks again Philip,
Just when I almost figured out what you were telling me in the first example you came up with this.
Works perfectly.
This portion of a script is meant only for windows with a list view so other views are not a problem.
The end result is a script that I use to deal with all windows of all applications. Places, for example "mail", windows where and what size I want them. The Finder windows, if they are off screen, are placed on screen and sized to fit with the view at the top of the window.
On May 16, 2009, at 3:19 PM, Philip Aker wrote: On 2009-05-16, at 14:00:47, Philip Aker wrote:
The reason is I want the window to scroll to the top rather that select some random point. Then when I click the zoom button the display will show the top viewable portion of the window.
Seems like a problem for UI scripting because it looks like the Finder doesn't have any specific support for the needed facility. And actually, I think there may be a problem using UI scripting to click the mouse at a specific point (didn't work properly on 10.4 and I haven't tried it since then).
Well, seems like a click might not be necessary:
tell application "Finder" to activate tell application "System Events" to tell application process "Finder" tell scroll area 1 of window 1 set value of every scroll bar to 0 end tell end tell
Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@ Democracy: Two wolves and a sheep voting on lunch.
Bob Poland - Fort Collins, CO
|
_______________________________________________
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