{"id":63912,"date":"2025-01-12T17:39:43","date_gmt":"2025-01-12T17:39:43","guid":{"rendered":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/"},"modified":"2025-01-12T17:40:51","modified_gmt":"2025-01-12T17:40:51","slug":"i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it","status":"publish","type":"post","link":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/","title":{"rendered":"I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It"},"content":{"rendered":"<p> <a href=\"https:\/\/go.fiverr.com\/visit\/?bta=1052423&nci=17043\" Target=\"_Top\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/fiverr.ck-cdn.com\/tn\/serve\/?cid=40081059\"  width=\"601\" height=\"201\"><\/a>\n<\/p>\n<div>\n<section class=\"emaki-custom-block emaki-custom-key-points\">\n<div class=\"emaki-custom key-points\" id=\"custom_block_0\">\n<h3 class=\"title icon i-list\">Abstract<\/h3>\n<div class=\"custom_block-content key-points\">\n<ul>\n<li> This script hides litter selectively, preserving important objects like related drives and volumes in your Mac desktop. <\/li>\n<li> Customise the script with variable arrays to specify which objects to at all times present or disguise, relying in your preferences. <\/li>\n<li> Set off the script by way of Apple Shortcuts or use it as a standalone executable for simple desktop decluttering. <\/li>\n<\/ul>\n<\/div><\/div>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":0,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":0,\"nbrPlacementsScanned\":0,\"ruleCount\":400,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":240} --><\/section>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":0,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":0,\"nbrPlacementsScanned\":0,\"ruleCount\":400,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":240} --><br \/>\n<!-- No winning ad found for zone: below first paragraph! --><\/p>\n<p>The macOS desktop can flip right into a chaotic digital junk drawer, cluttered with recordsdata, folders, and screenshots. However what if you happen to may tidy it up whereas maintaining its performance intact? Right here\u2019s a wiser technique to reclaim your desktop.<\/p>\n<p><!-- Repeatable debug data: {\"injection\":\"before\",\"adPosition\":0,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":0,\"nbrPlacementsScanned\":0,\"ruleCount\":400,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":false,\"actualCount\":471} --><!-- Zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"after\",\"adPosition\":1,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":1,\"nbrPlacementsScanned\":0,\"ruleCount\":400,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":false,\"actualCount\":0} --><br \/>\n<!-- Repeatable debug data: {\"isEarlyInjection\":false,\"currentRuleCount\":400,\"actualCount\":0,\"hasActualCountMetThreshold\":null,\"countRemainingForInjection\":null,\"nextBlockCount\":null,\"hasCountRemainingForInjectionMetThreshold\":null} --><br \/>\n<!-- No winning ad found for zone: native in content! --><\/p>\n<h2 id=\"the-nuclear-option-for-cleaning-up-your-mac-desktop\"> The Nuclear Choice for Cleansing Up Your Mac Desktop <\/h2>\n<p>The commonest approach for <a href=\"https:\/\/www.howtogeek.com\/730231\/how-to-hide-all-desktop-icons-on-mac\/\" target=\"_blank\">instant Desktop decluttering<\/a> is to run the next Terminal command:<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":1,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":1,\"nbrPlacementsScanned\":1,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":100} --><\/p>\n<pre><code class=\"hljs xml\"><span class=\"hljs-selector-tag\">defaults<\/span>\u00a0<span class=\"hljs-selector-tag\">write<\/span>\u00a0<span class=\"hljs-selector-tag\">com<\/span><span class=\"hljs-selector-class\">.apple<\/span><span class=\"hljs-selector-class\">.finder<\/span>\u00a0<span class=\"hljs-selector-tag\">CreateDesktop<\/span>\u00a0<span class=\"hljs-selector-tag\">-bool<\/span>\u00a0<span class=\"hljs-selector-tag\">false<\/span> &amp;&amp; <span class=\"hljs-selector-tag\">killall<\/span>\u00a0<span class=\"hljs-selector-tag\">Finder<\/span><br\/><\/code> <\/pre>\n<p>Whereas the above is efficient at wiping the slate clear, I&#8217;d classify it as a little bit of a nuclear choice. It is because it hides helpful objects like related drives and exterior volumes alongside the litter.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":1,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":1,\"nbrPlacementsScanned\":1,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":309} --><\/p>\n<p>After operating into this downside myself, I made a decision to jot down a greater answer: a script that hides desktop litter whereas maintaining the necessities seen.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":1,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":1,\"nbrPlacementsScanned\":1,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":460} --><\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":1,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":1,\"nbrPlacementsScanned\":1,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":460} --><\/p>\n<h2 id=\"whyhideyourdesktopicons\"> Why Disguise Your Desktop Icons? <\/h2>\n<p>There are many good causes to declutter your desktop. For one, it makes your workspace look cleaner, which might increase focus and productiveness. However there are sensible causes too.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":1,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":1,\"nbrPlacementsScanned\":1,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":643} --><\/p>\n<p>Display sharing throughout conferences or livestreaming typically reveals extra of your private workspace than you could be comfy with. Hiding these desktop icons protects your privateness. It\u2019s additionally a technique to reclaim the desktop as a spot for important shortcuts relatively than a dumping floor for each file you obtain or screenshot you&#8217;re taking.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":1,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":1,\"nbrPlacementsScanned\":1,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":979} --><br \/>\n<!-- Repeatable debug data: {\"isEarlyInjection\":true,\"currentRuleCount\":1000,\"actualCount\":979,\"hasActualCountMetThreshold\":true,\"countRemainingForInjection\":21,\"nextBlockCount\":327,\"hasCountRemainingForInjectionMetThreshold\":true,\"nextCount\":1306} --><\/p>\n<p><!-- Repeatable debug data: {\"injection\":\"before\",\"adPosition\":1,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":1,\"nbrPlacementsScanned\":1,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":true,\"actualCount\":1000} --><!-- Zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"after\",\"adPosition\":2,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":2,\"nbrPlacementsScanned\":1,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":true,\"actualCount\":0} --><\/p>\n<p>The normal technique of hiding desktop icons utilizing the CreateDesktop setting above is okay for some conditions, but it surely has vital downsides. When you flip it off, your desktop turns into utterly inaccessible. It\u2019s like locking a messy room however dropping entry to all the things inside, even the issues you may very well want.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":2,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":2,\"nbrPlacementsScanned\":2,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":306} --><\/p>\n<p>That\u2019s the place my script is available in.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":2,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":2,\"nbrPlacementsScanned\":2,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":340} --><\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":2,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":2,\"nbrPlacementsScanned\":2,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":340} --><\/p>\n<h2 id=\"whythisscriptisbetter\"> Why This Script Is Higher <\/h2>\n<p>As an alternative of hiding all the things indiscriminately, my script makes use of file attributes to selectively disguise non-essential objects. This strategy is cleaner, safer, and extra versatile than the normal technique.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":2,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":2,\"nbrPlacementsScanned\":2,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":538} --><\/p>\n<p>First, it doesn\u2019t rename your recordsdata by including a dot (.) initially of their names. This avoids breaking automations or scripts that reference desktop objects. The recordsdata aren\u2019t renamed; they\u2019re simply given a \u201chidden\u201d attribute, making them invisible on the desktop and in Finder except you\u2019ve configured Finder to indicate hidden recordsdata.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":2,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":2,\"nbrPlacementsScanned\":2,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":884} --><br \/>\n<!-- Repeatable debug data: {\"isEarlyInjection\":true,\"currentRuleCount\":1000,\"actualCount\":884,\"hasActualCountMetThreshold\":true,\"countRemainingForInjection\":116,\"nextBlockCount\":436,\"hasCountRemainingForInjectionMetThreshold\":true,\"nextCount\":1320} --><\/p>\n<p><!-- Repeatable debug data: {\"injection\":\"before\",\"adPosition\":2,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":2,\"nbrPlacementsScanned\":2,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":true,\"actualCount\":1000} --><!-- Zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"after\",\"adPosition\":3,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":3,\"nbrPlacementsScanned\":2,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":true,\"actualCount\":0} --><\/p>\n<p>Second, the script ensures that related drives and mounted volumes stay seen on the Desktop. It is a huge win for aesthetics and performance. Volumes are a core a part of the macOS desktop, and maintaining them seen reduces the possibilities of by accident <a href=\"https:\/\/www.howtogeek.com\/716194\/5-ways-to-eject-a-disk-on-a-mac\/#:~:text=And%20finally%2C%20you%20can%20also,will%20eject%20with%20no%20fuss.\" target=\"_blank\">disconnecting an external drive<\/a> with out ejecting it correctly. It\u2019s additionally simply good to look at your desktop and see what\u2019s plugged in with out having to open a Finder window.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":3,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":3,\"nbrPlacementsScanned\":3,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":320} --><\/p>\n<p>Lastly, the script is customizable. Customers with primary shell scripting familiarity can specify exceptions by means of variable arrays close to the highest of the script\u2014recordsdata or folders that ought to at all times stay seen or at all times hidden. That is helpful for maintaining sure objects accessible whereas cleansing up the remainder of the litter.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":3,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":3,\"nbrPlacementsScanned\":3,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":643} --><\/p>\n<p>As a bonus and in contrast to the normal strategy, my script doesn\u2019t require restarting Finder, which means no interruptions to your workflow or misplaced Finder home windows when the appliance re-initializes.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":3,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":3,\"nbrPlacementsScanned\":3,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":839} --><\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":3,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":3,\"nbrPlacementsScanned\":3,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":839} --><\/p>\n<h2 id=\"howtousethescriptinappleshortcuts\"> Easy methods to Use the Script in Apple Shortcuts <\/h2>\n<p>The Apple Shortcuts app is an effective way to combine this script into your workflow and make it &#8220;moveable&#8221;, so to talk.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":3,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":3,\"nbrPlacementsScanned\":3,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":958} --><br \/>\n<!-- Repeatable debug data: {\"isEarlyInjection\":true,\"currentRuleCount\":1000,\"actualCount\":958,\"hasActualCountMetThreshold\":true,\"countRemainingForInjection\":42,\"nextBlockCount\":240,\"hasCountRemainingForInjectionMetThreshold\":true,\"nextCount\":1198} --><\/p>\n<p><!-- Repeatable debug data: {\"injection\":\"before\",\"adPosition\":3,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":3,\"nbrPlacementsScanned\":3,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":true,\"actualCount\":1000} --><!-- Zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"after\",\"adPosition\":4,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":4,\"nbrPlacementsScanned\":3,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":true,\"actualCount\":0} --><\/p>\n<div class=\"body-img landscape \">\n<div class=\"responsive-img image-expandable img-article-item\" style=\"padding-bottom:71.078976640712%\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.png\" data-modal-id=\"single-image-modal\" data-modal-container-id=\"single-image-modal-container\" data-img-caption=\"&quot;&quot;\">\n<figure><picture><source media=\"(min-width: 1024px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\"\/><source media=\"(min-width: 768px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\"\/><source media=\"(min-width: 481px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.png?q=49&amp;fit=crop&amp;w=800&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.png?q=49&amp;fit=crop&amp;w=800&amp;dpr=2\"\/><source media=\"(min-width: 0px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.png?q=49&amp;fit=crop&amp;w=500&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.png?q=49&amp;fit=crop&amp;w=500&amp;dpr=2\"\/><img width=\"1798\" height=\"1278\" loading=\"lazy\" decoding=\"async\" alt=\"Adding a new Apple Shortcut.\" src=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.png\" style=\"display:block;height:auto;max-width:100%;\"\/> <\/picture> <\/figure>\n<\/p><\/div>\n<\/p><\/div>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":4,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":4,\"nbrPlacementsScanned\":4,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":198} --><\/p>\n<p>Begin by opening the Shortcuts app and creating a brand new clean shortcut.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":4,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":4,\"nbrPlacementsScanned\":4,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":267} --><\/p>\n<div class=\"body-img landscape \">\n<div class=\"responsive-img image-expandable img-article-item\" style=\"padding-bottom:87.992495309568%\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.png\" data-modal-id=\"single-image-modal\" data-modal-container-id=\"single-image-modal-container\" data-img-caption=\"&quot;&quot;\">\n<figure><picture><source media=\"(min-width: 1024px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\"\/><source media=\"(min-width: 768px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\"\/><source media=\"(min-width: 481px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.png?q=49&amp;fit=crop&amp;w=800&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.png?q=49&amp;fit=crop&amp;w=800&amp;dpr=2\"\/><source media=\"(min-width: 0px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.png?q=49&amp;fit=crop&amp;w=500&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.png?q=49&amp;fit=crop&amp;w=500&amp;dpr=2\"\/><img width=\"2132\" height=\"1876\" loading=\"lazy\" decoding=\"async\" alt=\"Adding a new Run Shell Script action.\" src=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.png\" style=\"display:block;height:auto;max-width:100%;\"\/> <\/picture> <\/figure>\n<\/p><\/div>\n<\/p><\/div>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":4,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":4,\"nbrPlacementsScanned\":4,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":507} --><\/p>\n<p>Add a \u201cRun Shell Script\u201d motion, delete the default \u201cHey World\u201d configuration within the physique and substitute it with the whole script under.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":4,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":4,\"nbrPlacementsScanned\":4,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":651} --><\/p>\n<section class=\"emaki-custom-block emaki-custom-expandable\">\n<div class=\"emaki-custom expandable\" id=\"custom_block_24\">\n<div class=\"custom_block-content expandable\">\n<pre>\n<code class=\"hljs xml\">\n<span class=\"hljs-meta\">#!\/bin\/bash<\/span>\n<p>\n<br\/>DESKTOP_PATH=\n<span class=\"hljs-string\">\"$HOME\/Desktop\"<\/span>\n\u00a0\n\n<\/p><p>\n<br\/>ALWAYS_SHOWN=(\n<br\/>)\n<\/p><p>\n<br\/>ALWAYS_HIDDEN=(\n<br\/>\u00a0\u00a0\n<span class=\"hljs-string\">\"$RECYCLE.BIN\"<\/span>\n\n<br\/>)\n<\/p><p>\n<br\/>is_in_always_shown() {\n<br\/>\u00a0\u00a0\n<span class=\"hljs-built_in\">native<\/span>\n item_basename=\n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$1<\/span>\n\"<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">for<\/span>\n shown_item \n<span class=\"hljs-keyword\">in<\/span>\n\u00a0\n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">${ALWAYS_SHOWN[@]}<\/span>\n\"<\/span>\n; \n<span class=\"hljs-keyword\">do<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">if<\/span>\n [[ \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$item_basename<\/span>\n\"<\/span>\n == \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$shown_item<\/span>\n\"<\/span>\n ]]; \n<span class=\"hljs-keyword\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">return<\/span>\n\u00a0\n<span class=\"hljs-number\">0<\/span>\n\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">achieved<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">return<\/span>\n\u00a0\n<span class=\"hljs-number\">1<\/span>\n\n<br\/>}\n<\/p><p>\n<br\/>is_in_always_hidden() {\n<br\/>\u00a0\u00a0\n<span class=\"hljs-built_in\">native<\/span>\n item_basename=\n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$1<\/span>\n\"<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">for<\/span>\n hidden_item \n<span class=\"hljs-keyword\">in<\/span>\n\u00a0\n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">${ALWAYS_HIDDEN[@]}<\/span>\n\"<\/span>\n; \n<span class=\"hljs-keyword\">do<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">if<\/span>\n [[ \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$item_basename<\/span>\n\"<\/span>\n == \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$hidden_item<\/span>\n\"<\/span>\n ]]; \n<span class=\"hljs-keyword\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">return<\/span>\n\u00a0\n<span class=\"hljs-number\">0<\/span>\n\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">achieved<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">return<\/span>\n\u00a0\n<span class=\"hljs-number\">1<\/span>\n\n<br\/>}\n<\/p><p>\n<br\/>has_visible_non_volumes=\n<span class=\"hljs-literal\">false<\/span>\n<br\/><span class=\"hljs-keyword\">for<\/span>\n merchandise \n<span class=\"hljs-keyword\">in<\/span>\n\u00a0\n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$DESKTOP_PATH<\/span>\n\"<\/span>\n\/*; \n<span class=\"hljs-keyword\">do<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-selector-tag\">if<\/span>\n\u00a0\n<span class=\"hljs-selector-attr\">[[ -e \n<span class=\"hljs-string\">\"$item\"<\/span>\n ]<\/span>\n]; \n<span class=\"hljs-selector-tag\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0item_basename=$(basename \n<span class=\"hljs-string\">\"$merchandise\"<\/span>\n)\n<\/p><p>\u00a0\u00a0\u00a0\u00a0\n\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">if<\/span>\n is_in_always_shown \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$item_basename<\/span>\n\"<\/span>\n; \n<span class=\"hljs-keyword\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">proceed<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<\/p><p>\u00a0\u00a0\u00a0\u00a0\n\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">if<\/span>\n is_in_always_hidden \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$item_basename<\/span>\n\"<\/span>\n; \n<span class=\"hljs-keyword\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">proceed<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<\/p><p>\u00a0\u00a0\u00a0\u00a0\n\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">if<\/span>\n [ ! -d \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$item<\/span>\n\"<\/span>\n ] || [[ $(diskutil list | grep \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$item_basename<\/span>\n\"<\/span>\n) == \n<span class=\"hljs-string\">\"\"<\/span>\n ]]; \n<span class=\"hljs-keyword\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">if<\/span>\n ! ls -ldO \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$merchandise<\/span>\n\"<\/span>\n | grep -q \n<span class=\"hljs-string\">\"hidden\"<\/span>\n; \n<span class=\"hljs-keyword\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0has_visible_non_volumes=\n<span class=\"hljs-literal\">true<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">break<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<br\/><span class=\"hljs-keyword\">achieved<\/span>\n<\/p><p>\n<br\/><span class=\"hljs-keyword\">if<\/span>\n $has_visible_non_volumes; then\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">echo<\/span>\n\u00a0\n<span class=\"hljs-string\">\"Hiding all non-volume objects (excluding specified exceptions)...\"<\/span>\n<\/p><p>\u00a0\u00a0\n<span class=\"hljs-keyword\">for<\/span>\n merchandise \n<span class=\"hljs-keyword\">in<\/span>\n\u00a0\n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$DESKTOP_PATH<\/span>\n\"<\/span>\n\/*; \n<span class=\"hljs-keyword\">do<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-selector-tag\">if<\/span>\n\u00a0\n<span class=\"hljs-selector-attr\">[[ -e \n<span class=\"hljs-string\">\"$item\"<\/span>\n ]<\/span>\n]; \n<span class=\"hljs-selector-tag\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0item_name=$(basename \n<span class=\"hljs-string\">\"$merchandise\"<\/span>\n)\n<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">if<\/span>\n is_in_always_shown \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$item_name<\/span>\n\"<\/span>\n; \n<span class=\"hljs-keyword\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">proceed<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0chflags hidden \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$merchandise<\/span>\n\"<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">achieved<\/span>\n<\/p><p>\u00a0\u00a0\n<span class=\"hljs-keyword\">echo<\/span>\n\u00a0\n<span class=\"hljs-string\">\"Non-volume objects hidden (besides exceptions).\"<\/span>\n<br\/><span class=\"hljs-keyword\">else<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">echo<\/span>\n\u00a0\n<span class=\"hljs-string\">\"Unhiding all objects (excluding specified exceptions)...\"<\/span>\n<\/p><p>\u00a0\u00a0\n<span class=\"hljs-keyword\">for<\/span>\n merchandise \n<span class=\"hljs-keyword\">in<\/span>\n\u00a0\n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$DESKTOP_PATH<\/span>\n\"<\/span>\n\/*; \n<span class=\"hljs-keyword\">do<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-selector-tag\">if<\/span>\n\u00a0\n<span class=\"hljs-selector-attr\">[[ -e \n<span class=\"hljs-string\">\"$item\"<\/span>\n ]<\/span>\n]; \n<span class=\"hljs-selector-tag\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0item_name=$(basename \n<span class=\"hljs-string\">\"$merchandise\"<\/span>\n)\n<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">if<\/span>\n is_in_always_hidden \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$item_name<\/span>\n\"<\/span>\n; \n<span class=\"hljs-keyword\">then<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">proceed<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n\n<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0chflags nohidden \n<span class=\"hljs-string\">\"\n<span class=\"hljs-variable\">$merchandise<\/span>\n\"<\/span>\n<br\/>\u00a0\u00a0\u00a0\u00a0\n<span class=\"hljs-keyword\">fi<\/span>\n<br\/>\u00a0\u00a0\n<span class=\"hljs-keyword\">achieved<\/span>\n<\/p><p>\u00a0\u00a0\n<span class=\"hljs-keyword\">echo<\/span>\n\u00a0\n<span class=\"hljs-string\">\"All objects unhidden (besides exceptions).\"<\/span>\n<br\/><span class=\"hljs-keyword\">fi<\/span>\n<br\/><\/p><\/code>\n <\/pre>\n<\/div><\/div>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":4,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":4,\"nbrPlacementsScanned\":4,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":891} --><\/section>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":4,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":4,\"nbrPlacementsScanned\":4,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":891} --><\/p>\n<p>Now, go forward and check it out by clicking the play button close to the highest or with the hotkey Command+R when the Shortcut window is targeted.<\/p>\n<p><!-- Repeatable debug data: {\"injection\":\"before\",\"adPosition\":4,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":4,\"nbrPlacementsScanned\":4,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":false,\"actualCount\":1027} --><!-- Zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"after\",\"adPosition\":5,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":5,\"nbrPlacementsScanned\":4,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":false,\"actualCount\":0} --><br \/>\n<!-- Repeatable debug data: {\"isEarlyInjection\":false,\"currentRuleCount\":1000,\"actualCount\":0,\"hasActualCountMetThreshold\":null,\"countRemainingForInjection\":null,\"nextBlockCount\":null,\"hasCountRemainingForInjectionMetThreshold\":null} --><\/p>\n<div class=\"body-img landscape \">\n<div class=\"responsive-img image-expandable img-article-item\" style=\"padding-bottom:87.992495309568%\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.png\" data-modal-id=\"single-image-modal\" data-modal-container-id=\"single-image-modal-container\" data-img-caption=\"&quot;&quot;\">\n<figure><picture><source media=\"(min-width: 1024px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\"\/><source media=\"(min-width: 768px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.png?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\"\/><source media=\"(min-width: 481px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.png?q=49&amp;fit=crop&amp;w=800&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.png?q=49&amp;fit=crop&amp;w=800&amp;dpr=2\"\/><source media=\"(min-width: 0px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.png?q=49&amp;fit=crop&amp;w=500&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.png?q=49&amp;fit=crop&amp;w=500&amp;dpr=2\"\/><img width=\"2132\" height=\"1876\" loading=\"lazy\" decoding=\"async\" alt=\"Running the script in Apple Shortcuts.\" src=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.png\" style=\"display:block;height:auto;max-width:100%;\"\/> <\/picture> <\/figure>\n<\/p><\/div>\n<\/p><\/div>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":5,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":5,\"nbrPlacementsScanned\":5,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":240} --><\/p>\n<p>The primary time you run the shortcut, macOS could immediate you to permit Shortcut.app to execute scripts. When you grant permission, run the shortcut once more, and it ought to work flawlessly. You possibly can change these underneath Shortcuts &gt; Settings &gt; Superior too.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":5,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":5,\"nbrPlacementsScanned\":5,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":491} --><\/p>\n<p>For simple entry, why not <a href=\"https:\/\/www.howtogeek.com\/764640\/how-to-trigger-mac-shortcuts-from-the-menu-bar\/\" target=\"_blank\">pin the shortcut to your Mac menu bar<\/a>?<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":5,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":5,\"nbrPlacementsScanned\":5,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":554} --><\/p>\n<p>For superior customers, the script consists of arrays close to the highest for customizing which recordsdata or folders ought to at all times be hidden or proven. By including the names of particular objects to those arrays, you possibly can tailor the script to fit your preferences. The one script works as a toggle, so that you solely want one to each disguise and present non-volume desktop objects (simply run it agan to place all the things again).<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":5,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":5,\"nbrPlacementsScanned\":5,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":941} --><\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":5,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":5,\"nbrPlacementsScanned\":5,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":941} --><br \/>\n<!-- Repeatable debug data: {\"isEarlyInjection\":true,\"currentRuleCount\":1000,\"actualCount\":941,\"hasActualCountMetThreshold\":true,\"countRemainingForInjection\":59,\"nextBlockCount\":251,\"hasCountRemainingForInjectionMetThreshold\":true,\"nextCount\":1192} --><\/p>\n<p><!-- Repeatable debug data: {\"injection\":\"before\",\"adPosition\":5,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":5,\"nbrPlacementsScanned\":5,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":true,\"actualCount\":1000} --><!-- Zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"after\",\"adPosition\":6,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":6,\"nbrPlacementsScanned\":5,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":true,\"actualCount\":0} --><\/p>\n<p>When you\u2019d relatively run the script immediately, that\u2019s straightforward too. Save the script to a file in your most well-liked listing. For instance, create a file named hide_desktop.sh, reserve it in a handy location, and make it executable with the next command:<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":6,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":6,\"nbrPlacementsScanned\":6,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":192} --><\/p>\n<pre><code class=\"hljs xml\">chmod +x \/path\/to\/hide_desktop.sh<br\/><\/code> <\/pre>\n<p>From there, you possibly can run the script manually within the terminal emulator of your selecting or configure it to run utilizing your favourite software. When you use <a href=\"https:\/\/www.howtogeek.com\/326002\/how-to-overhaul-macos-spotlight-search-using-alfred\/\" target=\"_blank\">Alfred<\/a>, you possibly can set off the script with a configured hotkey or key phrase. Alternatively, you possibly can flip it right into a double-clickable app utilizing Automator.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":6,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":6,\"nbrPlacementsScanned\":6,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":485} --><\/p>\n<p>These choices make it straightforward to cover and unhide your desktop icons with minimal effort. You possibly can even mix methodologies by operating Apple Shortcuts immediately out of your terminal as proven under (I named my Shortcut &#8220;Declutter Desktop&#8221;).<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":6,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":6,\"nbrPlacementsScanned\":6,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":718} --><\/p>\n<div class=\"body-img landscape \">\n<div class=\"responsive-img image-expandable img-article-item\" style=\"padding-bottom:64.95%\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif\" data-modal-id=\"single-image-modal\" data-modal-container-id=\"single-image-modal-container\" data-img-caption=\"&quot;&quot;\">\n<figure><picture><source media=\"(min-width: 1024px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\"\/><source media=\"(min-width: 768px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif?q=49&amp;fit=crop&amp;w=825&amp;dpr=2\"\/><source media=\"(min-width: 481px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif?q=49&amp;fit=crop&amp;w=800&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif?q=49&amp;fit=crop&amp;w=800&amp;dpr=2\"\/><source media=\"(min-width: 0px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif?q=49&amp;fit=crop&amp;w=500&amp;dpr=2\" srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif?q=49&amp;fit=crop&amp;w=500&amp;dpr=2\"\/><img width=\"2000\" height=\"1299\" loading=\"lazy\" decoding=\"async\" alt=\"Running Declutter Desktop Shortcut via Terminal.\" src=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif\" style=\"display:block;height:auto;max-width:100%;\"\/> <\/picture> <\/figure>\n<\/p><\/div>\n<\/p><\/div>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":6,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":6,\"nbrPlacementsScanned\":6,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":958} --><\/p>\n<hr\/>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":6,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":6,\"nbrPlacementsScanned\":6,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":958} --><br \/>\n<!-- Repeatable debug data: {\"isEarlyInjection\":true,\"currentRuleCount\":1000,\"actualCount\":958,\"hasActualCountMetThreshold\":true,\"countRemainingForInjection\":42,\"nextBlockCount\":211,\"hasCountRemainingForInjectionMetThreshold\":true,\"nextCount\":1169} --><\/p>\n<p><!-- Repeatable debug data: {\"injection\":\"before\",\"adPosition\":6,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":6,\"nbrPlacementsScanned\":6,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":true,\"actualCount\":1000} --><!-- Zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"after\",\"adPosition\":7,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":7,\"nbrPlacementsScanned\":6,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"isEarlyInjection\":true,\"actualCount\":0} --><\/p>\n<p>This script doesn\u2019t simply tidy up your desktop\u2014it provides you management. It hides the litter with out taking away the performance of your desktop, making certain that essential objects like mounted drives keep seen.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":7,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":7,\"nbrPlacementsScanned\":7,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":169} --><\/p>\n<p>Whether or not you\u2019re livestreaming, display screen sharing, or simply attempting to beautify your workspace, it\u2019s a versatile and chic answer that works the best way macOS ought to. So, give it a attempt. With slightly setup, you possibly can declutter your desktop with out burning all of it down.<\/p>\n<p><!-- No repeatable ad for zone: character count repeatable. --><!-- Repeatable debug data: {\"injection\":\"none\",\"adPosition\":7,\"startingPoint\":0,\"skipEvery\":null,\"nbrPlacementFilledEachSkip\":7,\"nbrPlacementsScanned\":7,\"ruleCount\":1000,\"degradationStartingPoint\":1,\"stopAds\":null,\"actualCount\":431} -->\n <\/div>\n<iframe src=\"https:\/\/www.fiverr.com\/gig_widgets?id=U2FsdGVkX18x7XQvttUTrv1oEqmGNGTgvvCUiUoJ\/AP4z\/UyMz8lXGOLpu15jIMxBbTR0gmD5uBoFvhC4KWeALQRp3h\/X\/AwcVD0K8Wj9H\/ZzYKzcCNHosB9oS4SCJJFWiN85P9ICAc4OgCoE\/wHKIY7CDkf2\/DQ1vqGvk4smVe5cRDEmrLPCWi4FC8p40VUhSmWQ5udCm0zoJtorgWv3vbDQw0kKYkwn39ozAnQXDe+YvWMxkLFWA+O3TFwkJvdkIK+\/AUSnRssPKt5WHY0FhNOxnSPcLslEL4G4\/RfP95ve99U+kRnDy3X+KtzdQLY+u935ghON\/o3UE4IMv9oN6JX9RnxzL\/LRcOgnHigxStSGPKsZYtnz8RWNVT\/rOLAibqiWJadC5MYHRbekF3eg6FOGrQGkXYbsn0+a5aovnlLCbLwIqY9fcS17UX8J235iQ6cdmHNbrPeS84CMm34RA==&affiliate_id=1052423&strip_google_tagmanager=true\" loading=\"lazy\" data-with-title=\"true\" class=\"fiverr_nga_frame\" frameborder=\"0\" height=\"350\" width=\"100%\" referrerpolicy=\"no-referrer-when-downgrade\" data-mode=\"random_gigs\" onload=\" var frame = this; var script = document.createElement('script'); script.addEventListener('load', function() { window.FW_SDK.register(frame); }); script.setAttribute('src', 'https:\/\/www.fiverr.com\/gig_widgets\/sdk'); document.body.appendChild(script); \" ><\/iframe>\n<br \/><a href=\"https:\/\/www.howtogeek.com\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/\">Source link <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Abstract This script hides litter selectively, preserving important objects like related drives and volumes in your Mac desktop. Customise the script with variable arrays to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":63913,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-63912","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-universe"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It - mailinvest.blog<\/title>\n<meta name=\"description\" content=\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It - mailinvest.blog\" \/>\n<meta property=\"og:description\" content=\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/\" \/>\n<meta property=\"og:site_name\" content=\"mailinvest.blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/freelanceracademic\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-12T17:39:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-12T17:40:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mailinvest.blog\/wp-content\/uploads\/2025\/01\/using-aliases-symbolic-links-hard-links-on-mac.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2100\" \/>\n\t<meta property=\"og:image:height\" content=\"1400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@mailinvest.blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin@mailinvest.blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/\"},\"author\":{\"name\":\"admin@mailinvest.blog\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/person\\\/012701c4c204d4e4ebd34f926cfd31a4\"},\"headline\":\"I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It\",\"datePublished\":\"2025-01-12T17:39:43+00:00\",\"dateModified\":\"2025-01-12T17:40:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/\"},\"wordCount\":1087,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/using-aliases-symbolic-links-hard-links-on-mac.jpg\",\"articleSection\":[\"Tech Universe\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/\",\"name\":\"I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It - mailinvest.blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/using-aliases-symbolic-links-hard-links-on-mac.jpg\",\"datePublished\":\"2025-01-12T17:39:43+00:00\",\"dateModified\":\"2025-01-12T17:40:51+00:00\",\"description\":\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/#primaryimage\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/using-aliases-symbolic-links-hard-links-on-mac.jpg\",\"contentUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/using-aliases-symbolic-links-hard-links-on-mac.jpg\",\"width\":2100,\"height\":1400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2025\\\/01\\\/12\\\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mailinvest.blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#website\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/\",\"name\":\"mailinvest.blog\",\"description\":\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis. mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\",\"publisher\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mailinvest.blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#organization\",\"name\":\"mailinvest\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/default.png\",\"contentUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/default.png\",\"width\":1000,\"height\":1000,\"caption\":\"mailinvest\"},\"image\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/freelanceracademic\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/person\\\/012701c4c204d4e4ebd34f926cfd31a4\",\"name\":\"admin@mailinvest.blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g\",\"caption\":\"admin@mailinvest.blog\"},\"sameAs\":[\"https:\\\/\\\/mailinvest.blog\",\"admin@mailinvest.blog\"],\"url\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/author\\\/adminmailinvest-blog\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It - mailinvest.blog","description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/","og_locale":"en_US","og_type":"article","og_title":"I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It - mailinvest.blog","og_description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","og_url":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/","og_site_name":"mailinvest.blog","article_publisher":"https:\/\/www.facebook.com\/freelanceracademic\/","article_published_time":"2025-01-12T17:39:43+00:00","article_modified_time":"2025-01-12T17:40:51+00:00","og_image":[{"width":2100,"height":1400,"url":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2025\/01\/using-aliases-symbolic-links-hard-links-on-mac.jpg","type":"image\/jpeg"}],"author":"admin@mailinvest.blog","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin@mailinvest.blog","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/#article","isPartOf":{"@id":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/"},"author":{"name":"admin@mailinvest.blog","@id":"https:\/\/mailinvest.blog\/#\/schema\/person\/012701c4c204d4e4ebd34f926cfd31a4"},"headline":"I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It","datePublished":"2025-01-12T17:39:43+00:00","dateModified":"2025-01-12T17:40:51+00:00","mainEntityOfPage":{"@id":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/"},"wordCount":1087,"commentCount":0,"publisher":{"@id":"https:\/\/mailinvest.blog\/#organization"},"image":{"@id":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/#primaryimage"},"thumbnailUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2025\/01\/using-aliases-symbolic-links-hard-links-on-mac.jpg","articleSection":["Tech Universe"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/","url":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/","name":"I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It - mailinvest.blog","isPartOf":{"@id":"https:\/\/mailinvest.blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/#primaryimage"},"image":{"@id":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/#primaryimage"},"thumbnailUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2025\/01\/using-aliases-symbolic-links-hard-links-on-mac.jpg","datePublished":"2025-01-12T17:39:43+00:00","dateModified":"2025-01-12T17:40:51+00:00","description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","breadcrumb":{"@id":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/#primaryimage","url":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2025\/01\/using-aliases-symbolic-links-hard-links-on-mac.jpg","contentUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2025\/01\/using-aliases-symbolic-links-hard-links-on-mac.jpg","width":2100,"height":1400},{"@type":"BreadcrumbList","@id":"https:\/\/mailinvest.blog\/index.php\/2025\/01\/12\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mailinvest.blog\/"},{"@type":"ListItem","position":2,"name":"I Wrote the Best Script for Decluttering the Mac Desktop, Here\u2019s How to Use It"}]},{"@type":"WebSite","@id":"https:\/\/mailinvest.blog\/#website","url":"https:\/\/mailinvest.blog\/","name":"mailinvest.blog","description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis. mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","publisher":{"@id":"https:\/\/mailinvest.blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mailinvest.blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mailinvest.blog\/#organization","name":"mailinvest","url":"https:\/\/mailinvest.blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailinvest.blog\/#\/schema\/logo\/image\/","url":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/01\/default.png","contentUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/01\/default.png","width":1000,"height":1000,"caption":"mailinvest"},"image":{"@id":"https:\/\/mailinvest.blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/freelanceracademic\/"]},{"@type":"Person","@id":"https:\/\/mailinvest.blog\/#\/schema\/person\/012701c4c204d4e4ebd34f926cfd31a4","name":"admin@mailinvest.blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g","caption":"admin@mailinvest.blog"},"sameAs":["https:\/\/mailinvest.blog","admin@mailinvest.blog"],"url":"https:\/\/mailinvest.blog\/index.php\/author\/adminmailinvest-blog\/"}]}},"_links":{"self":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/posts\/63912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/comments?post=63912"}],"version-history":[{"count":1,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/posts\/63912\/revisions"}],"predecessor-version":[{"id":63914,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/posts\/63912\/revisions\/63914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/media\/63913"}],"wp:attachment":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/media?parent=63912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/categories?post=63912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/tags?post=63912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}