Hide Desktop Items With an AppleScript
Here are a pair of Finder AppleScripts to hide all of your Desktop files. The first makes them disappear. The second brings them back.
Hide Desktop Files
do shell script "chflags hidden ~/Desktop/*"
Reveal Desktop Files
do shell script "chflags nohidden ~/Desktop/*"
Copy each script into its own Script Editor window and save them to ~/Library/Scripts. I wish I’d known about this trick sooner.