Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'even cheaper solution...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
even cheaper solution...
Authored by: wallybear on Mar 01, '11 02:48:40AM
You can obtain the same functionality using the donationware Spark shortcut tool.

Just add a shortcut for Pages that triggers the following Applescript:
activate application "Pages"
tell application "System Events"
      tell process "Pages"
         repeat with thewin in windows
            if subrole of thewin is "AXStandardWindow" then
               click button 1 of scroll area 1 of splitter group 1 of thewin
               exit repeat
            end if
          end repeat
      end tell
   end try
end tell
this is the code for page down, replace button 1 with button 2 for page up.
The strange repeat loop is needed because applescript detects also floating windows, and they are detected before regolar ones; so, as we cannot know how may palettes (inspector, font, colors, etc.) are open, the script browses all the windows till it finds the first one that is a regular one (it will be the frontmost open document).
Hope this helps.

[ Reply to This | # ]