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
  • Email

Related

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

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

  • Windows Vista CD key
  • ZooZooo - Vodafone Logos
  • How to download Specific parts of YouTube videos
  • How to Increase Dropbox upload speed
  • How to Change the Welcome/Login Screen in Windows XP ?
  • HORIZONTAL AND VERTICAL SPACING
  • Hide or Show Label Count In Blogger
  • Free Online Angry Birds game
  • h4x0r ( Hacker ) - Blogger Template
  • Random Post Widget for Blogger

Random Posts

Automatic Read More Hack with fixed pages

May 29, 2010 By Ritesh Sanap Leave a Comment

LastPass – Free Password Manager

August 5, 2014 By Ritesh Sanap Leave a Comment

How to disable Rotator in thesis

March 29, 2011 By Ritesh Sanap 4 Comments

How to find Duplicate Files on Computer

November 23, 2012 By Ritesh Sanap 2 Comments

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

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

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

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.