# I would like my application to overlap the dock (with the app behind of course)

I'm on 10.7.3. I have my dock at the bottom. To the left and right of the dock, I see the wallpaper.

I would actually like the app I'm in to extend all the way to the bottom of the monitor, with the dock on top of the bottom of the app.

So now it looks like this:

I'd like it to look like this (this is just a crude mockup, I don't really want to see the wallpaper bleeding through of course). Can this be done?

-
Note that the tiny image of the girl is my smoking hot wife :) –  Matthew Lund Mar 6 '12 at 21:17
Is there a reason why you don't just turn dock hiding on? That way your app's window will use the full screen height and the dock will overlap when it is needed. –  pdd Mar 6 '12 at 21:28
@MatthewLund Do you want apps to be non-dock-aware as a default? –  gentmatt Mar 6 '12 at 21:31
My only concern with keeping the dock hidden is that several instant messaging programs jump around in the dock to let you know there's a message. When the dock is hidden I see the jump for a second or two, then it's gone. So if I'm looking away, I don't realize someone IM'd me. –  Matthew Lund Mar 6 '12 at 21:32
@gentmatt - What does it mean for the apps to be non-dock-aware? –  Matthew Lund Mar 6 '12 at 21:34

If you turn hiding on for the Dock, using the + button will extend maximized windows to the very bottom of the screen. When you mouse down near the bottom of the screen the dock will appear and be on top of any program windows on the display.

If you turn Dock hiding off after maximizing windows in this fashion they'll stay maximized all the way to the bottom of the screen. The Dock will be on top of the windows.

As promised, here's some AppleScript to make this happen:

tell application "System Events"
set the autohide of the dock preferences to true
end tell
delay 1
tell application "System Events"
set frontApp to first application process whose frontmost is true
end tell
tell application (name of frontApp)
set zoomed of window 1 to not (zoomed of window 1)
end tell
delay 1
tell application "System Events"
set the autohide of the dock preferences to false
end tell


You can follow these directions to assign that script to a keyboard short cut. I put the delays in there because I found every few runs the dock would unhide before the window had maximized and as such, it wouldn't be behind the dock.

-
That works. Anyway to make this permanent so I don't need to continually repeat the steps? –  Matthew Lund Mar 6 '12 at 21:33
Well, knowing the hide/restore shortcut helps at least. opt-command-d. So each time I want this consists of 3 steps. opt-cmd-d, click the + icon on the app, opt-cmd-d. –  Matthew Lund Mar 6 '12 at 21:40
Is there a shortcut to accomplish the same thing that clicking the + icon on the app does? –  Matthew Lund Mar 6 '12 at 21:40
Wonder if I could do all 3 steps in an applescript and then assign a hot key to the applescript. Then I'd be down to one keyboard shortcut :) –  Matthew Lund Mar 6 '12 at 21:41
@MatthewLund challenge accepted: I'll try and come up with some AppleScript for you that you can run as a service or assign to a hotkey. –  Ian C. Mar 6 '12 at 22:16