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:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to print (Opens in new window) Print
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to email a link to a friend (Opens in new window) Email

Related

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

Leave a ReplyCancel 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
    How to download Specific parts of YouTube videos
  • Windows Vista CD key
    Windows Vista CD key
  • How to retrieve my Demonoid username
    How to retrieve my Demonoid username
  • How to add Logo to Thesis theme
    How to add Logo to Thesis theme
  • How to Delete Feedbacks from JetPack Contact Form
    How to Delete Feedbacks from JetPack Contact Form
  • List Of All 255 Keyboard All Alt Key Codes
    List Of All 255 Keyboard All Alt Key Codes
  • h4x0r ( Hacker ) - Blogger Template
    h4x0r ( Hacker ) - Blogger Template

Get Latest post in your Inbox

Random Posts

Another Trick available for Orkut account hack

March 10, 2009 By Ritesh Sanap 17 Comments

Chit Chat for Facebook

December 3, 2010 By Ritesh Sanap Leave a Comment

Tweaking memory

March 14, 2009 By Ritesh Sanap Leave a Comment

How to remove category from WordPress URL

January 29, 2012 By Ritesh Sanap Leave a Comment

How to Hide Desktop Icons in Mac

November 28, 2014 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

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