try
set toggle to do shell script "defaults read com.apple.finder CreateDesktop"
if toggle = "true" then
do shell script "defaults write com.apple.finder CreateDesktop false"
else if toggle = "false" then

do shell script "defaults write com.apple.finder CreateDesktop true"
end if
end try

do shell script "killall Finder"
delay 0.5
activate application "Finder"
 Is this code? Or is it pre? The world will never know. 

Share This Story

Get our newsletter