• 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: Safari scroll bar problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Safari scroll bar problem (From: Brian Christmas <email@hidden>)
 >Re: Safari scroll bar problem (From: Phil Stokes <email@hidden>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 13, Issue 363
  • Previous by thread: Re: Safari scroll bar problem
  • Next by thread: Re: AppleScript-Users Digest, Vol 13, Issue 363
  • Index(es):
    • Date
    • Thread