Benches macOS

2

Scrolling in a Window Automatically with …

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

My second post in two days... I promise that I search for at least an hour on questions like this!! I can't find anything...

Can I control the scroll arrows of a window (specifically a Finder window)? If I have a window with scroll bars showing, can I move them to the top, or say all the way to the left, or perhaps right in the middle at 50%? 70%?

I have looked at commands for "scroll areas" (which I am kinda cloudy on) and "sliders" and I cannot seem to make anything work. I'd even take something that mimics the effect of the "home" and "end" buttons on the keyboard (although I'd still like control over left and right scrolling).

I've Googled. I've searched both the Finder and System Events dictionaries. I've looked through the "Missing Manual". I'm just at a loss... Haylp!

Message was edited by: Achy Fakey

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    James Nierodzik

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Unfortunately I can't test on Tiger at the moment, but this works on Leopard so hopefully it will be of some use to you.


    activate application "Finder"
    tell application "System Events"
    tell process "Finder"
    -- range is from 0.0 to 1.0, so to scroll halfway you would use 0.5
    set value of scroll bar 1 of scroll area 2 of splitter group 1 of front window to 0.0
    end tell
    end tell

  2. 0

    Achy Fakey

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Sounds great. I could not find the term "scroll bar" in any of my dictionaries. Thanks so much. It worked!