Return Scroll Bars to Top?

Details, Details, Details. :frowning:

I am nearing the home stretch with my application. Thanks so much to everyone who has helped out. What a great community this is! So, some detail-oriented freakazoid (a friend, actually) points out that in some sheets that display output from certain commands, the scrollbars don’t return to the top of the window, but stay in the middle. He suggests I reset them between displaying the sheets (which have a scrolling text view).

I searched high and low, but can’t find an example of how to do this. Anyone know?

This should work (update your text view reference accordingly, of course):

call method "scrollRangeToVisible:" of object (text view 1 of scroll view 1 of window "main") with parameter {0, 0}

Jon

Uh oh. That would be the first bit of Objective C in my AppleScript Studio Application. Looks like I’m not going to be able to get away with purse AppleScript and Shell script. :wink:

Thanks!