I often lose my desktop background and end up with a solid blue desktop when changing between using a monitor and using the built-in PowerBook LCD. Each time it happens, I have to go through the desktop settings panel, where I find that the desired picture is still selected, so I have to choose some other picture then choose the original again.
This is a bit of a pain, so I made this little applescript to avoid having to dance with the preference panel every time. I just compile it into an app and save it on my desktop (or in the scripts menu) to be easily run whenever the desktop turns blue. Sometimes I have to run it twice, but that's easy too.
tell application "Finder"
set currentPicture to the desktop picture as string
set the desktop picture to ¬
":Library:Desktop Pictures:Solid Colors:Solid Aqua Blue.png"
set the desktop picture to currentPicture
end tell
If anyone has a real fix instead of this workaround, I would love to hear it.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20050111194524177