• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Home to top of the list.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Home to top of the list.


  • Subject: Re: Home to top of the list.
  • From: Philip Aker <email@hidden>
  • Date: Sat, 16 May 2009 14:19:15 -0700

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.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Home to top of the list.
      • From: Robert Poland <email@hidden>
References: 
 >Home to top of the list. (From: Robert Poland <email@hidden>)
 >Re: Home to top of the list. (From: Philip Aker <email@hidden>)
 >Re: Home to top of the list. (From: Robert Poland <email@hidden>)
 >Re: Home to top of the list. (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Home to top of the list.
  • Next by Date: Re: Get unread message count from Mail.app
  • Previous by thread: Re: Home to top of the list.
  • Next by thread: Re: Home to top of the list.
  • Index(es):
    • Date
    • Thread