Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Applescript to hide desktop icons' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Applescript to hide desktop icons
Authored by: Gnarlodious on Jan 17, '08 10:14:52AM
http://Gnarlodious.com/Computer/Applescript

-- if no such value exists, create it
try
do shell script "defaults read com.apple.finder CreateDesktop"
on error
do shell script "defaults write com.apple.finder CreateDesktop -bool true"
end try

-- toggle the existing value
if (do shell script "defaults read com.apple.finder CreateDesktop" as string) = "1" then
do shell script "defaults write com.apple.finder CreateDesktop -bool false"
else
do shell script "defaults write com.apple.finder CreateDesktop -bool true"
end if

delay 1

-- quit and reactivate the Finder to use the new preferences.
tell application "Finder" to quit
delay 1
tell application "Finder" to activate

[ Reply to This | # ]