tell application "System Events"
set d to last item in desktops
-- Standard Swatch Paths
set whitepath to "/Library/Desktop Pictures/Solid Colors/Solid White.png"
set blackpath to "/Library/Desktop Pictures/Solid Colors/Solid Black.png"
if ((picture of d as string) = ("Esopus Spitzenburg:Library:Desktop Pictures:Solid Colors:Solid White.png" as string)) then
set picture of d to POSIX file blackpath
set picture of d to POSIX file whitepath
All that is necessary for the triumph of evil is that good men do nothing. Do something.