Re: Safari scroll bar problem
Re: Safari scroll bar problem
- Subject: Re: Safari scroll bar problem
- From: Phil Stokes <email@hidden>
- Date: Thu, 01 Sep 2016 13:16:46 +0700
I understand the need to scroll programmatically - I meant I don’t understand the need to locate the scroll bar element in the UI, which will change depending on the window’s bounds and thus be unreliable for coding.
In AppKit framework, NSResponder has scrollToBeginningOfDocument and scrollToEndOfDocument methods, which you could try implementing in ASObjC. I suspect you’d first have to get a reference to the Window’s text or webkit view to call it.
Another way to scroll up and down entirely might be just to get each page’s contents, and try to alternately set the insertion point or location at the beginning or end of the range.
I’m not at a computer I can play with code at the moment, but I’ll have a mess about with these a bit later to see if I can come up with some concrete code examples.
Best
P
_______________________________________________
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