A much easier method is to hit Command-Option-D, and the dock will hide. Do what you need to do, and hit Command-Option-D again, and the dock will show itself.
Caught this one on the MacFixIt boards tonight...of course, from comment #1, I should have 'caught' it by just looking at the Apple menu! Oh well, it was a long day!

