Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

How to Hide Desktop Icons in Mac

Apple MacWe sometimes take screenshots or videos of Desktop and at that time the Desktop is cluttered with Applications icons, files and folders and other things. Which does not look good on video or screenshot or some even need to hide those for Presentations using a projector, but like windows there is no option of hiding Desktop icons in Mac.

But you can hide all your desktop icons in mac using the following command in your Terminal Application :

defaults write com.apple.finder CreateDesktop false; killall Finder

and can make the icons visible again by changing ‘false‘ to ‘true‘ in the above command and command will become like this :

defaults write com.apple.finder CreateDesktop true; killall Finder

Now that is easy, but who can remember the code always and use it ?, So the solution to it is using a AppleScript with Automator application in mac which I found on LifeHacker. they have mentioned How to use it with Automator application.

Using Alfred Workflow

But quite frankly I don’t like or was unable to understand how to hide desktop icons using Automator, the AppleScript is working quite fine when running it.

So instead I created a workflow in Alfred Application using the AppleScript that will toggle Desktop icons. you can download the Alfred Workflow from this GitHub Page.

Alfred Workflow to toggle Desktop icons

Alfred Workflow to toggle Desktop icons

Hide desktop icons using Terminal Aliases

If you don’t like Automator or Don’t have Alfred than don’t worry, we still have an alternative that is using
Aliases in Terminal App for that just follow the below steps:

  1. Open your Terminal Application
  2. Open .bash_profile file in a text editor of your choice I will use vim by using follow command:
    vim .bash_profile
  3. Then paste the below code (if you are using vim then press i to insert the text) :
    #Aliases
    # Hide Desktop Icons
    alias hideicons="defaults write com.apple.finder CreateDesktop false; killall Finder"
    # Show Desktop Icons
    alias showicons="defaults write com.apple.finder CreateDesktop true; killall Finder"
    

    All the aliases I use in Terminal

    All the aliases I use in Terminal

  4. Save the file. (for vim press esc and then press :and type wq that will save the file)
  5. now quit and restart Terminal or reload .bash_profile by using following command :
    source .bash_profile

Now you can Hide Desktop icons whenever you want by typing “hideicons” in terminal, and to show desktop icons again type “showicons“.

Subscribe via Email

Share this:

  • Twitter
  • Facebook
  • Pocket
  • Print
  • WhatsApp
  • Email

Related

November 28, 2014 Ritesh Sanap Solutions Alfred, hide, How To, Mac, Terminal

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation

Previous Previous post: How to Start and Stop an application on Startup in Mac
Next Next post: How to retrieve my Demonoid username

Currently Trending

  • How to download Specific parts of YouTube videos
  • Windows Vista CD key
  • How to Change the Welcome/Login Screen in Windows XP ?
  • AnimeStar - Blogger Template
  • List Of All 255 Keyboard All Alt Key Codes
  • Automatically add Google Plus (+) to your Post
  • Clean Your Messy Desktop & Organize Your Stuff !
  • From Netbook to Jetbook- Make your notebook super fast
  • MS-DOS and command line overview
  • How to retrieve my Demonoid username

Get Latest post in your Inbox

Random Posts

4 Games You Can Play while Working

August 1, 2011 By Ritesh Sanap 11 Comments

How To Change Windows XP Shutdown Dialog Box

July 27, 2008 By Ritesh Sanap Leave a Comment

How to Turn off/ Remove Admin bar in WordPress

February 27, 2011 By Ritesh Sanap Leave a Comment

Check if your Antivirus Is Working Properly

July 8, 2008 By Ritesh Sanap Leave a Comment

Converting a Folder into a Drive

August 8, 2008 By Ritesh Sanap Leave a Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2023 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean