View Single Post
Apparently there is indeed a feature request in a queue somewhere in the system.

In the meanwhile, I have used Keyboard Maestro to assign HOME and END macros to the corresponding keys for OmniGraffle. (On a laptop, Fn left arrow and Fn right arrow).

HOME (scroll to top left corner of current canvas)

Code:
OGScroll(0, 0)

on OGScroll(rHoriz, rVert)
	tell application id "sevs"
		set lstApp to application processes where creator type = "OGfl"
		if (count of lstApp) < 1 then return
		
		tell last scroll area of splitter group 1 of window 1 of first item of lstApp
			if rHoriz ≠ "" then set value of (value indicator of scroll bar 1) to rHoriz
			if rVert ≠ "" then set value of (value indicator of scroll bar 2) to rVert
		end tell
	end tell
end OGScroll
END (scroll to lower right corner of current canvas)
Code:
OGScroll(1, 1)

on OGScroll(rHoriz, rVert)
	tell application id "sevs"
		set lstApp to application processes where creator type = "OGfl"
		if (count of lstApp) < 1 then return
		
		tell last scroll area of splitter group 1 of window 1 of first item of lstApp
			if rHoriz ≠ "" then set value of (value indicator of scroll bar 1) to rHoriz
			if rVert ≠ "" then set value of (value indicator of scroll bar 2) to rVert
		end tell
	end tell
end OGScroll
--

Last edited by RobTrew; 2011-12-22 at 01:31 AM..