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


Click here to return to the '10.7: Remove the Dock's display delay' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.7: Remove the Dock's display delay
Authored by: gmachen on Mar 27, '12 11:20:45AM
For example, an AppleScript to require my aforementioned click-at-screen-edge to make Dock appear wasn't responsive enough, and this applet to toggle the Dock width to so small as to be out of the way just wasn't sufficiently robust:
(*

"position of the mouse" uses XTool 2.0 osax:
<http://lestang.org/osax/XTool/XTool-2.0.dmg.tgz>
Put in ~/Library/Scripting Additions/

*)

on run
	do shell script "defaults write com.apple.Dock tilesize -int 1"
	set DockSize to "narrow"
	tell application "Dock" to quit
	tell application "Finder" to activate
end run

on idle
	if (end of (position of the mouse) = 999) then
		delay 1
		if ((end of (position of the mouse) = 999) and DockSize = "narrow") then
			do shell script "defaults write com.apple.Dock tilesize -int 200"
			set DockSize to "wide"
			tell application "Dock" to quit
		end if
	else
		if DockSize = "wide" then
			do shell script "defaults write com.apple.Dock tilesize -int 1"
			set DockSize to "narrow"
			tell application "Dock" to quit
		end if
	end if
	return 1
end idle


[ Reply to This | # ]