How to hide and disable icons on your desktop

Over the last few weeks, I have been preparing to do a WebEx‎ presentation whereby I will need to share my desktop. However, it’s in a bit of a mess!

So, I had two options, either I clean up or try to hide it! The clean up option meant that I would have to put everything back following the presentation, so option two it was!

There are two ways in which you can do this, depending on how often you are going to or need to use it. One way is to run a couple of commands in terminal or create a script that you can just launch as and when you need it. Today, we are going to use the script files, but you can easily use each command separately.

The Hide Command:
We will need to create a new file, to do so we are going to use nano:

nano DesktopHide.command

For the script we are going to use:

#!/bin/sh

defaults write com.apple.finder CreateDesktop -bool false && killall Finder && killall Terminal

The Reversal Command:

We need to create a new file and to do so we are going to use nano:

nano DesktopReveal.command

For the script we are going to use:

#!/bin/sh

defaults write com.apple.finder CreateDesktop -bool true && killall Finder && killall Terminal

Disclaimer:

While the author has taken care to provide our readers with accurate information, please use your discretion before acting upon information based on the blog post. Amsys will not compensate you in any way whatsoever if you ever happen to suffer a loss/inconvenience/damage because of/while making use of information in this blog.

Leave a Reply

Your email address will not be published. Required fields are marked *