On Jun 24, 2010, at 2:17, Jeff Brown wrote:
> Hi,
>
> I have poor eyesight, and often read PDF files zoomed in on a quarter of the
> screen. If there were a keyboard shortcut to jump to the left or the right
> side of the page, or the top or bottom, I could read much faster, and with
> much less stress to my hand.
>
> If it were deemed too obtrusive to become a default part of the application,
> I'd be happy to write my own AppleScript. What I had in mind was something
> like the following four commands:
> "tell application "Skim" set horizontal_scrollbar 0"
> "tell application "Skim" set horizontal_scrollbar 1"
> "tell application "Skim" set vertical_scrollbar 0"
> "tell application "Skim" set vertical_scrollbar 1"
>
> But after reading this:
> https://sourceforge.net/apps/mediawiki/skim-app/index.php?title=AppleScript
> and a lot of silly trial and error, I'm believe Skim does not make those
> variables -- whatever their true names -- available to AppleScript.
>
> If it did, that would be wonderful.
>
> Best,
> Jeff
>
No, this is not available in the Skim dictionary. However, you can do this
using UI Scripting (the Processes Suite in the System Events dictionary).
Here's an example:
tell application "System Events"
tell scroll area 1 of splitter group 1 of splitter group 1 of front
window of process "Skim"
set verticalScrollBars to scroll bars whose orientation is
"AXVerticalOrientation"
if (count of verticalScrollBars) > 0 then set value of item 1
of verticalScrollBars to 0
end tell
end tell
Christiaan
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users