{"id":6786,"date":"2025-01-12T17:33:45","date_gmt":"2025-01-12T17:33:45","guid":{"rendered":"https:\/\/howtogeek.blog\/ja\/?p=6786"},"modified":"2025-01-12T17:33:45","modified_gmt":"2025-01-12T17:33:45","slug":"ultimate-guide-how-to-use-my-top-script-for-decluttering-your-mac-desktop","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/ja\/ultimate-guide-how-to-use-my-top-script-for-decluttering-your-mac-desktop\/","title":{"rendered":"\u7a76\u6975\u30ac\u30a4\u30c9: Mac \u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u6574\u7406\u3059\u308b\u305f\u3081\u306e\u79c1\u306e\u30c8\u30c3\u30d7 \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"<h3>\u6982\u8981<\/h3>\n<ul>\n<li>\u3053\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u63a5\u7d9a\u3055\u308c\u305f\u30c9\u30e9\u30a4\u30d6\u3084\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u3069\u3001Mac \u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u4e0a\u306e\u91cd\u8981\u306a\u9805\u76ee\u3092\u4fdd\u6301\u3057\u306a\u304c\u3089\u3001\u96d1\u7136\u3068\u3057\u305f\u3082\u306e\u3092\u9078\u629e\u7684\u306b\u975e\u8868\u793a\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u5909\u6570\u914d\u5217\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u597d\u307f\u306b\u5408\u308f\u305b\u3066\u7c21\u5358\u306b\u8abf\u6574\u3067\u304d\u307e\u3059\u3002\u5909\u6570\u914d\u5217\u306f\u3001\u8a2d\u5b9a\u306b\u57fa\u3065\u3044\u3066\u3069\u306e\u9805\u76ee\u3092\u5e38\u306b\u8868\u793a\u307e\u305f\u306f\u975e\u8868\u793a\u306b\u3059\u308b\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>Apple \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u7c21\u5358\u306b\u30c8\u30ea\u30ac\u30fc\u3059\u308b\u304b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u500b\u5225\u306b\u5b9f\u884c\u3057\u3066\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u7c21\u5358\u306b\u6574\u7406\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>macOS \u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3001\u30d5\u30a9\u30eb\u30c0\u30fc\u3001\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306a\u3069\u3067\u6ea2\u308c\u3001\u30c7\u30b8\u30bf\u30eb\u306e\u6df7\u4e71\u306b\u9665\u308a\u304c\u3061\u3067\u3059\u3002\u6717\u5831\u3067\u3059\u3002\u6a5f\u80fd\u6027\u3092\u7dad\u6301\u3057\u306a\u304c\u3089\u3001\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u5408\u7406\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u3059\u3063\u304d\u308a\u3068\u898b\u305b\u308b\u305f\u3081\u306e\u3001\u3088\u308a\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u3092\u63a2\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 id=\"unleashing-the-power-of-desktop-organization\">\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u6574\u7406\u306e\u30d1\u30ef\u30fc\u3092\u89e3\u304d\u653e\u3064<\/h2>\n<p>Mac \u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u6574\u7406\u3059\u308b\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306f\u3001\u901a\u5e38\u3001\u6b21\u306e\u30bf\u30fc\u30df\u30ca\u30eb \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p> <code> <code>defaults write com.apple.finder CreateDesktop -bool false &amp;&amp; killall Finder<\/code><\/code><\/p>\n<p>\u3053\u306e\u65b9\u6cd5\u306f\u4e71\u96d1\u306a\u3082\u306e\u3092\u52b9\u679c\u7684\u306b\u53d6\u308a\u9664\u304d\u307e\u3059\u304c\u3001\u5916\u4ed8\u3051\u30c9\u30e9\u30a4\u30d6\u3084\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u3069\u306e\u4fbf\u5229\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3082\u96a0\u3057\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u6838\u5175\u5668\u3092\u767a\u5c04\u3059\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002\u79c1\u306f\u3053\u306e\u4e0d\u4fbf\u3055\u306b\u76f4\u9762\u3057\u3001\u3088\u308a\u6d17\u7df4\u3055\u308c\u305f\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u307e\u3057\u305f\u3002\u305d\u308c\u306f\u3001\u91cd\u8981\u306a\u9805\u76ee\u3092\u8868\u793a\u3057\u305f\u307e\u307e\u3001\u4f59\u5206\u306a\u4e71\u96d1\u306a\u3082\u306e\u3092\u5de7\u307f\u306b\u96a0\u3059\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002<\/p>\n<h2 id=\"benefits-of-hiding-desktop-icons\">\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30a4\u30b3\u30f3\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u306f\u306a\u305c\u3067\u3059\u304b?<\/h2>\n<p>\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u6574\u7406\u6574\u9813\u3059\u308b\u3068\u3001\u3055\u307e\u3056\u307e\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u7b2c\u4e00\u306b\u3001\u4f5c\u696d\u30b9\u30da\u30fc\u30b9\u304c\u6574\u7406\u3055\u308c\u308b\u3068\u3001\u96c6\u4e2d\u529b\u3068\u751f\u7523\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002\u5b9f\u969b\u3001\u76ee\u306b\u898b\u3048\u308b\u4e71\u96d1\u3055\u3092\u6e1b\u3089\u3059\u3068\u3001\u753b\u9762\u5171\u6709\u3001\u30d3\u30c7\u30aa\u901a\u8a71\u3001\u30e9\u30a4\u30d6\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u4e2d\u306e\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u3082\u78ba\u4fdd\u3055\u308c\u3001\u500b\u4eba\u60c5\u5831\u304c\u4fdd\u8b77\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u9805\u76ee\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u3068\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u304c\u96d1\u7136\u3068\u3057\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3084\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306e\u305f\u3073\u306b\u7acb\u3061\u5bc4\u308b\u5834\u6240\u3067\u306f\u306a\u304f\u3001\u91cd\u8981\u306a\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u5c02\u7528\u306e\u30b9\u30da\u30fc\u30b9\u306b\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<p>CreateDesktop \u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u4e00\u90e8\u306e\u4eba\u306b\u3068\u3063\u3066\u306f\u6a5f\u80fd\u7684\u3067\u3059\u304c\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5b8c\u5168\u306b\u7121\u52b9\u306b\u3059\u308b\u3068\u3044\u3046\u91cd\u5927\u306a\u6b20\u9665\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u6563\u3089\u304b\u3063\u305f\u90e8\u5c4b\u306b\u9375\u3092\u304b\u3051\u305f\u306e\u306b\u9375\u3092\u306a\u304f\u3057\u305f\u3088\u3046\u306a\u3082\u306e\u3067\u3001\u5fc5\u8981\u306a\u3082\u306e\u3059\u3079\u3066\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u3001\u79c1\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3088\u308a\u30b9\u30de\u30fc\u30c8\u306a\u4ee3\u66ff\u6848\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"why-this-script-is-a-game-changer\">\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30b2\u30fc\u30e0\u30c1\u30a7\u30f3\u30b8\u30e3\u30fc\u3067\u3042\u308b\u7406\u7531<\/h2>\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u3059\u3079\u3066\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u7121\u5dee\u5225\u306b\u975e\u8868\u793a\u306b\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30d5\u30a1\u30a4\u30eb\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u3066\u91cd\u8981\u3067\u306a\u3044\u9805\u76ee\u3092\u6226\u7565\u7684\u306b\u975e\u8868\u793a\u306b\u3057\u3001\u30af\u30ea\u30fc\u30f3\u3055\u3001\u5b89\u5168\u6027\u3001\u67d4\u8edf\u6027\u3092\u512a\u5148\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e3b\u306a\u5229\u70b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059:<\/p>\n<ul>\n<li>\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u305b\u305a (\u30c9\u30c3\u30c8 (.) \u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3092\u8ffd\u52a0)\u3001\u81ea\u52d5\u5316\u307e\u305f\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u5185\u306e\u53c2\u7167\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002<\/li>\n<li>\u63a5\u7d9a\u3055\u308c\u305f\u30c9\u30e9\u30a4\u30d6\u3068\u30de\u30a6\u30f3\u30c8\u3055\u308c\u305f\u30dc\u30ea\u30e5\u30fc\u30e0\u306f\u8868\u793a\u3055\u308c\u305f\u307e\u307e\u306a\u306e\u3067\u3001\u7f8e\u89b3\u3068\u6a5f\u80fd\u7684\u306a\u5229\u4fbf\u6027\u304c\u78ba\u4fdd\u3055\u308c\u3001\u5916\u4ed8\u3051\u30c9\u30e9\u30a4\u30d6\u304c\u8aa4\u3063\u3066\u53d6\u308a\u5916\u3055\u308c\u308b\u3053\u3068\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u8868\u793a\u307e\u305f\u306f\u975e\u8868\u793a\u306b\u5b9a\u7fa9\u3057\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u500b\u4eba\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u30cb\u30fc\u30ba\u306b\u9069\u5fdc\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u4ee5\u524d\u306e\u65b9\u6cd5\u3068\u306f\u7570\u306a\u308a\u3001Finder \u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u305f\u3081\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u304c\u4e2d\u65ad\u3055\u308c\u308b\u3053\u3068\u306a\u304f\u7dad\u6301\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2 id=\"integrating-the-script-with-apple-shortcuts\">\u30b9\u30af\u30ea\u30d7\u30c8\u3092Apple\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3068\u7d71\u5408\u3059\u308b<\/h2>\n<p>Apple \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8 \u30a2\u30d7\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u65e5\u5e38\u696d\u52d9\u306b\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d71\u5408\u3067\u304d\u308b\u305f\u3081\u3001\u79fb\u690d\u6027\u3068\u52b9\u7387\u6027\u304c\u9ad8\u307e\u308a\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-image\"><img alt=\"\u65b0\u3057\u3044Apple\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\" class=\"wp-image\" decoding=\"async\" height=\"1278\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/adding-a-new-apple-shortcut.webp\" title=\"\u65b0\u3057\u3044Apple\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\" width=\"1798\"\/><\/figure>\n<p>\u307e\u305a\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8 \u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u3001\u65b0\u3057\u3044\u7a7a\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-image\"><img alt=\"\u300c\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u300d\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u8ffd\u52a0\" class=\"wp-image\" decoding=\"async\" height=\"1876\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/adding-a-new-run-shell-script-action.webp\" title=\"\u300c\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u300d\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u8ffd\u52a0\" width=\"2132\"\/><\/figure>\n<p>\u300c\u30b7\u30a7\u30eb \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u300d\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u300cHello World\u300d\u30c6\u30ad\u30b9\u30c8\u3092\u4ee5\u4e0b\u306b\u793a\u3059\u5b8c\u5168\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<p> <code> <code><br \/>\n#!\/bin\/bash<br \/>\n# Path to the Desktop directory<br \/>\nDESKTOP_PATH=\"$HOME\/Desktop\"<br \/>\n# Don't edit this line<br \/>\n# List of files and folders to always SHOW<br \/>\nALWAYS_SHOWN=(<br \/>\n  # Add filenames\/folders here as needed (examples below)<br \/>\n  # \"Always Visible Folder\"<br \/>\n  # \"Always Visible File.txt\"<br \/>\n)<\/code><\/code><\/p>\n<p># \u5e38\u306b\u975e\u8868\u793a\u306b\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u30ea\u30b9\u30c8<br \/>\nALWAYS_HIDDEN=( <br \/>\n  &#8220;$RECYCLE.BIN&#8221; <br \/>\n  # \u3053\u306e\u884c\u306f\u7de8\u96c6\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044<br \/>\n  # &#8220;Always Hidden Folder&#8221; <br \/>\n  # &#8220;Always Hidden File.txt&#8221; <br \/>\n)<\/p>\n<p># \u30a2\u30a4\u30c6\u30e0\u304c ALWAYS_SHOWN \u914d\u5217\u306b\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u95a2\u6570<br \/>\nis_in_always_shown() { <br \/>\n  local item_basename=&#8221;$1&#8243; <br \/>\n  for show_item in &#8220;${ALWAYS_SHOWN[@]}&#8221;; do <br \/>\n    if [[ &#8220;$item_basename&#8221;== &#8220;$shown_item&#8221;]]; then <br \/>\n      return 0 # \u4e00\u81f4\u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f<br \/>\n    fi <br \/>\n  done <br \/>\n  return 1 # \u4e00\u81f4\u3057\u307e\u305b\u3093<br \/>\n}<\/p>\n<p># \u30a2\u30a4\u30c6\u30e0\u304c ALWAYS_HIDDEN \u914d\u5217\u306b\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u95a2\u6570<br \/>\nis_in_always_hidden() { <br \/>\n  local item_basename=&#8221;$1&#8243; <br \/>\n  for hidden_\u200b\u200bitem in &#8220;${ALWAYS_HIDDEN[@]}&#8221;; do <br \/>\n    if [[ &#8220;$item_basename&#8221;== &#8220;$hidden_\u200b\u200bitem&#8221;]]; then <br \/>\n      return 0 # \u4e00\u81f4\u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f<br \/>\n    fi <br \/>\n  done <br \/>\n  return 1 # \u4e00\u81f4\u3057\u307e\u305b\u3093<br \/>\n}<\/p>\n<p># \u30dc\u30ea\u30e5\u30fc\u30e0\u4ee5\u5916\u306e\u8868\u793a\u9805\u76ee\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059<br \/>\nhas_visible_non_volumes=false <br \/>\nfor item in &#8220;$DESKTOP_PATH&#8221;\/*; do <br \/>\n  if [[ -e &#8220;$item&#8221;]]; then <br \/>\n    item_basename=$(basename &#8220;$item&#8221;) <br \/>\n    # ALWAYS_SHOWN \u5185\u306e\u9805\u76ee\u3092\u7121\u8996\u3057\u307e\u3059<br \/>\n    if is_in_always_shown &#8220;$item_basename&#8221;; then continue; fi <br \/>\n    # ALWAYS_HIDDEN \u5185\u306e\u9805\u76ee\u3092\u7121\u8996\u3057\u307e\u3059<br \/>\n    if is_in_always_hidden &#8220;$item_basename&#8221;; then continue; fi <br \/>\n    # \u9805\u76ee\u304c\u30dc\u30ea\u30e5\u30fc\u30e0\u3067\u306f\u306a\u304f\u3001\u975e\u8868\u793a\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059<br \/>\n    if [! -d &#8220;$item&#8221;] || [[ $(diskutil list | grep &#8220;$item_basename&#8221;) == &#8220;&#8221;]]; then <br \/>\n      if! ls -ldO &#8220;$item&#8221;| grep -q &#8220;hidden&#8221;;\u305d\u306e\u5f8c\u3001<br \/>\n        has_visible_non_volumes=true <br \/>\n        break <br \/>\n      fi <br \/>\n    fi <br \/>\n  fi <br \/>\ndone<\/p>\n<p># \u8868\u793a\u3092\u9069\u5b9c\u5207\u308a\u66ff\u3048\u307e\u3059<br \/>\nif $has_visible_non_volumes; then <br \/>\n  echo &#8220;\u30dc\u30ea\u30e5\u30fc\u30e0\u4ee5\u5916\u306e\u3059\u3079\u3066\u306e\u9805\u76ee\u3092\u975e\u8868\u793a\u306b\u3057\u3066\u3044\u307e\u3059 (\u6307\u5b9a\u3055\u308c\u305f\u4f8b\u5916\u3092\u9664\u304f)&#8230;&#8221; <br \/>\n  for item in &#8220;$DESKTOP_PATH&#8221;\/*; do <br \/>\n    if [[ -e &#8220;$item&#8221;]]; then <br \/>\n      item_name=$(basename &#8220;$item&#8221;) <br \/>\n      # \u9805\u76ee\u304c ALWAYS_SHOWN \u30ea\u30b9\u30c8\u306b\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059<br \/>\n      if is_in_always_shown &#8220;$item_name&#8221;; then continue; fi <br \/>\n      # \u4f8b\u5916\u3067\u306a\u3044\u5834\u5408\u306f\u975e\u8868\u793a\u306b\u3057\u307e\u3059<br \/>\n      chflags hidden &#8220;$item&#8221; <br \/>\n    fi <br \/>\n  done <br \/>\n  echo &#8220;\u30dc\u30ea\u30e5\u30fc\u30e0\u4ee5\u5916\u306e\u9805\u76ee\u3092\u975e\u8868\u793a\u306b\u3057\u3066\u3044\u307e\u3059 (\u4f8b\u5916\u3092\u9664\u304f)\u3002&#8221; <br \/>\nelse <br \/>\n  echo &#8220;\u3059\u3079\u3066\u306e\u9805\u76ee\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059 (\u6307\u5b9a\u3055\u308c\u305f\u4f8b\u5916\u3092\u9664\u304f)&#8230;&#8221; <br \/>\n  for item in &#8220;$DESKTOP_PATH&#8221;\/*; do <br \/>\n    if [[ -e &#8220;$item&#8221;]]; then <br \/>\n      item_name=$(basename &#8220;$item&#8221;) <br \/>\n      # \u30a2\u30a4\u30c6\u30e0\u304c ALWAYS_HIDDEN \u30ea\u30b9\u30c8\u306b\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059<br \/>\n      if is_in_always_hidden &#8220;$item_name&#8221;; then continue; fi <br \/>\n      # \u4f8b\u5916\u3067\u306a\u3044\u5834\u5408\u306f\u975e\u8868\u793a\u3092\u89e3\u9664\u3057\u307e\u3059<br \/>\n      chflags nohidden &#8220;$item&#8221; <br \/>\n    fi <br \/>\n  done <br \/>\n  echo &#8220;\u3059\u3079\u3066\u306e\u30a2\u30a4\u30c6\u30e0\u304c\u975e\u8868\u793a\u89e3\u9664\u3055\u308c\u307e\u3057\u305f (\u4f8b\u5916\u3092\u9664\u304f)\u3002&#8221; <br \/>\nfi\n<\/p>\n<p>\u4e0a\u90e8\u8fd1\u304f\u306b\u3042\u308b\u518d\u751f\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u304b\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8 \u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u3042\u308b\u3068\u304d\u306b\u30db\u30c3\u30c8\u30ad\u30fc Command+R \u3092\u4f7f\u7528\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-image\"><img alt=\"Apple\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\" class=\"wp-image\" decoding=\"async\" height=\"1876\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/running-the-script-in-apple-shortcuts.webp\" title=\"Apple\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\" width=\"2132\"\/><\/figure>\n<p>\u521d\u3081\u3066\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001Shortcuts.app \u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u6a29\u9650\u3092\u4ed8\u4e0e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3063\u305f\u5f8c\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u518d\u5b9f\u884c\u3057\u3066\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u6a5f\u80fd\u3092\u4f53\u9a13\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3089\u306e\u6a29\u9650\u306f\u3001[\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8] &gt; [\u8a2d\u5b9a] &gt; [\u8a73\u7d30] \u3067\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3059\u3070\u3084\u304f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092 Mac \u30e1\u30cb\u30e5\u30fc \u30d0\u30fc\u306b\u56fa\u5b9a\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4e0a\u7d1a\u30e6\u30fc\u30b6\u30fc\u5411\u3051\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u3092\u5e38\u306b\u975e\u8868\u793a\u307e\u305f\u306f\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u305f\u3081\u306e\u914d\u5217\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u7279\u5b9a\u306e\u9805\u76ee\u540d\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30cb\u30fc\u30ba\u306b\u5408\u308f\u305b\u3066\u5fae\u8abf\u6574\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u5358\u4e00\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30c8\u30b0\u30eb\u3068\u3057\u3066\u6a5f\u80fd\u3057\u3001\u9805\u76ee\u3092\u7c21\u5358\u306b\u975e\u8868\u793a\u307e\u305f\u306f\u8868\u793a\u3067\u304d\u307e\u3059 (\u5143\u306b\u623b\u3059\u306b\u306f\u3001\u3082\u3046\u4e00\u5ea6\u5b9f\u884c\u3057\u307e\u3059)\u3002<\/p>\n<h2 id=\"executing-the-script-as-a-standalone-tool\">\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3\u30c4\u30fc\u30eb\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b<\/h2>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u72ec\u7acb\u3057\u3066\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b\u306e\u304c\u7c21\u5358\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u306b \u3068\u3044\u3046\u540d\u524d\u3092\u4ed8\u3051\u3066<code>hide_desktop.sh<\/code>\u4fdd\u5b58\u3057\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u5b9f\u884c\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n<p> <code> <code>chmod +x \/path\/to\/hide_desktop.sh<\/code><\/code><\/p>\n<p>\u597d\u307f\u306e\u30bf\u30fc\u30df\u30ca\u30eb \u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u624b\u52d5\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u3001Alfred \u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u4ecb\u3057\u3066\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002Automator \u306a\u3069\u306e\u9ad8\u5ea6\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u53ef\u80fd\u306a\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u65b9\u6cd5\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u6700\u5c0f\u9650\u306e\u52b4\u529b\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089 Apple \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u8d77\u52d5\u3057\u3066\u3001\u3059\u3079\u3066\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u6574\u7406\u30bf\u30b9\u30af\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d71\u5408\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-image\"><img alt=\"\u30bf\u30fc\u30df\u30ca\u30eb\u7d4c\u7531\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092Declutter\u3067\u5b9f\u884c\u3059\u308b\" class=\"wp-image\" decoding=\"async\" height=\"1299\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/running-declutter-desktop-shortcut-via-cli-anim.gif\" title=\"\u30bf\u30fc\u30df\u30ca\u30eb\u7d4c\u7531\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092Declutter\u3067\u5b9f\u884c\u3059\u308b\" width=\"2000\"\/><\/figure>\n<p>\u3053\u306e\u591a\u6a5f\u80fd\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u6574\u7406\u3059\u308b\u3060\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u898b\u305f\u3044\u3082\u306e\u3092\u30ad\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u6a5f\u80fd\u3082\u5099\u3048\u3066\u3044\u307e\u3059\u3002\u30de\u30a6\u30f3\u30c8\u3055\u308c\u305f\u30c9\u30e9\u30a4\u30d6\u306a\u3069\u306e\u91cd\u8981\u306a\u9805\u76ee\u304c\u8868\u793a\u3055\u308c\u305f\u307e\u307e\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u306a\u304c\u3089\u3001\u90aa\u9b54\u306a\u3082\u306e\u3092\u975e\u8868\u793a\u306b\u3057\u307e\u3059\u3002\u30e9\u30a4\u30d6\u30b9\u30c8\u30ea\u30fc\u30e0\u3001\u753b\u9762\u306e\u5171\u6709\u3001\u307e\u305f\u306f\u5358\u306b\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306e\u7f8e\u89b3\u3092\u5411\u4e0a\u3055\u305b\u308b\u306a\u3069\u3001macOS \u6a5f\u80fd\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u3055\u308c\u305f\u30a8\u30ec\u30ac\u30f3\u30c8\u3067\u9069\u5fdc\u6027\u306e\u9ad8\u3044\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<p>\u6574\u7406\u6574\u9813\u306e\u6a5f\u4f1a\u3092\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6574\u7406\u3055\u308c\u305f\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u304c\u5f85\u3063\u3066\u3044\u307e\u3059!<\/p>\n<h3>\u8ffd\u52a0\u306e\u6d1e\u5bdf<\/h3>\n<h4><strong>1. \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5909\u66f4\u3057\u3066\u3001\u3069\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u8868\u793a\u3057\u305f\u307e\u307e\u306b\u3059\u308b\u304b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u304b?<\/strong><\/h4>\n<p>\u8868\u793a\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u306b\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4e0a\u90e8\u306b\u3042\u308b<code>ALWAYS_SHOWN<\/code>\u304a\u3088\u3073\u914d\u5217\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u500b\u4eba\u306e\u597d\u307f\u306b\u5408\u308f\u305b\u3066\u30d5\u30a1\u30a4\u30eb\u540d\u307e\u305f\u306f\u30d5\u30a9\u30eb\u30c0\u30fc\u540d\u3092\u8ffd\u52a0\u307e\u305f\u306f\u524a\u9664\u3057\u307e\u3059\u3002<code>ALWAYS_HIDDEN<\/code><\/p>\n<h4><strong>2. \u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4ed6\u306e Mac \u30a2\u30d7\u30ea\u3067\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u304b?<\/strong><\/h4>\n<p>\u3082\u3061\u308d\u3093\u3067\u3059! \u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u30db\u30c3\u30c8\u30ad\u30fc\u7528\u306e Alfred \u3084\u30a2\u30d7\u30ea\u4f5c\u6210\u7528\u306e Automator \u306a\u3069\u3001\u30b7\u30a7\u30eb \u30b3\u30de\u30f3\u30c9\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3055\u307e\u3056\u307e\u306a Mac \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u7d44\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4><strong>3. \u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u304c\u96a0\u3055\u308c\u308b\u3068\u3069\u3046\u306a\u308a\u307e\u3059\u304b?<\/strong><\/h4>\n<p>\u30d5\u30a1\u30a4\u30eb\u306f\u524a\u9664\u307e\u305f\u306f\u79fb\u52d5\u3055\u308c\u307e\u305b\u3093\u3002\u4ee3\u308f\u308a\u306b\u3001\u300c\u96a0\u3057\u300d\u5c5e\u6027\u304c\u4ed8\u4e0e\u3055\u308c\u3001\u518d\u5ea6\u8868\u793a\u3059\u308b\u3053\u3068\u3092\u9078\u629e\u3059\u308b\u307e\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3068 Finder \u3067\u975e\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a class=\"xiaomi\" href=\"https:\/\/www.howtogeek.com\/i-wrote-the-best-script-for-decluttering-the-mac-desktop-heres-how-to-use-it\/\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">\u51fa\u5178\u3068\u753b\u50cf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u3053\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u63a5\u7d9a\u3055\u308c\u305f\u30c9\u30e9\u30a4\u30d6\u3084\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u3069\u3001Mac \u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u4e0a\u306e\u91cd\u8981\u306a\u9805\u76ee\u3092\u4fdd\u6301\u3057\u306a\u304c\u3089\u3001\u96d1\u7136\u3068\u3057\u305f\u3082\u306e\u3092\u9078\u629e\u7684\u306b\u975e\u8868\u793a\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u5909\u6570\u914d\u5217\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u597d\u307f\u306b\u5408\u308f\u305b\u3066\u7c21\u5358\u306b\u8abf\u6574\u3067\u304d\u307e\u3059\u3002\u5909\u6570\u914d\u5217\u306f\u3001\u8a2d\u5b9a\u306b\u57fa\u3065\u3044\u3066\u3069\u306e\u9805\u76ee\u3092\u5e38\u306b\u8868\u793a\u307e\u305f\u306f\u975e\u8868\u793a\u306b\u3059\u308b\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 Apple \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u7c21\u5358\u306b\u30c8\u30ea\u30ac\u30fc\u3059\u308b\u304b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u500b\u5225\u306b\u5b9f\u884c\u3057\u3066\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u7c21\u5358\u306b\u6574\u7406\u3057\u307e\u3059\u3002 macOS \u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3001\u30d5\u30a9\u30eb\u30c0\u30fc\u3001\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306a\u3069\u3067\u6ea2\u308c\u3001\u30c7\u30b8\u30bf\u30eb\u306e\u6df7\u4e71\u306b\u9665\u308a\u304c\u3061\u3067\u3059\u3002\u6717\u5831\u3067\u3059\u3002\u6a5f\u80fd\u6027\u3092\u7dad\u6301\u3057\u306a\u304c\u3089\u3001\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u5408\u7406\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u3059\u3063\u304d\u308a\u3068\u898b\u305b\u308b\u305f\u3081\u306e\u3001\u3088\u308a\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u3092\u63a2\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u6574\u7406\u306e\u30d1\u30ef\u30fc\u3092\u89e3\u304d\u653e\u3064 Mac \u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u6574\u7406\u3059\u308b\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306f\u3001\u901a\u5e38\u3001\u6b21\u306e\u30bf\u30fc\u30df\u30ca\u30eb \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3059\u3002 defaults write com.apple.finder CreateDesktop -bool false &amp;&amp; killall Finder \u3053\u306e\u65b9\u6cd5\u306f\u4e71\u96d1\u306a\u3082\u306e\u3092\u52b9\u679c\u7684\u306b\u53d6\u308a\u9664\u304d\u307e\u3059\u304c\u3001\u5916\u4ed8\u3051\u30c9\u30e9\u30a4\u30d6\u3084\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u3069\u306e\u4fbf\u5229\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3082\u96a0\u3057\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u6838\u5175\u5668\u3092\u767a\u5c04\u3059\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002\u79c1\u306f\u3053\u306e\u4e0d\u4fbf\u3055\u306b\u76f4\u9762\u3057\u3001\u3088\u308a\u6d17\u7df4\u3055\u308c\u305f\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u307e\u3057\u305f\u3002\u305d\u308c\u306f\u3001\u91cd\u8981\u306a\u9805\u76ee\u3092\u8868\u793a\u3057\u305f\u307e\u307e\u3001\u4f59\u5206\u306a\u4e71\u96d1\u306a\u3082\u306e\u3092\u5de7\u307f\u306b\u96a0\u3059\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002 \u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30a4\u30b3\u30f3\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u306f\u306a\u305c\u3067\u3059\u304b? \u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u6574\u7406\u6574\u9813\u3059\u308b\u3068\u3001\u3055\u307e\u3056\u307e\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u7b2c\u4e00\u306b\u3001\u4f5c\u696d\u30b9\u30da\u30fc\u30b9\u304c\u6574\u7406\u3055\u308c\u308b\u3068\u3001\u96c6\u4e2d\u529b\u3068\u751f\u7523\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002\u5b9f\u969b\u3001\u76ee\u306b\u898b\u3048\u308b\u4e71\u96d1\u3055\u3092\u6e1b\u3089\u3059\u3068\u3001\u753b\u9762\u5171\u6709\u3001\u30d3\u30c7\u30aa\u901a\u8a71\u3001\u30e9\u30a4\u30d6\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u4e2d\u306e\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u3082\u78ba\u4fdd\u3055\u308c\u3001\u500b\u4eba\u60c5\u5831\u304c\u4fdd\u8b77\u3055\u308c\u307e\u3059\u3002 \u3055\u3089\u306b\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u9805\u76ee\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u3068\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u304c\u96d1\u7136\u3068\u3057\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3084\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306e\u305f\u3073\u306b\u7acb\u3061\u5bc4\u308b\u5834\u6240\u3067\u306f\u306a\u304f\u3001\u91cd\u8981\u306a\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u5c02\u7528\u306e\u30b9\u30da\u30fc\u30b9\u306b\u5909\u308f\u308a\u307e\u3059\u3002 CreateDesktop \u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u4e00\u90e8\u306e\u4eba\u306b\u3068\u3063\u3066\u306f\u6a5f\u80fd\u7684\u3067\u3059\u304c\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5b8c\u5168\u306b\u7121\u52b9\u306b\u3059\u308b\u3068\u3044\u3046\u91cd\u5927\u306a\u6b20\u9665\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u6563\u3089\u304b\u3063\u305f\u90e8\u5c4b\u306b\u9375\u3092\u304b\u3051\u305f\u306e\u306b\u9375\u3092\u306a\u304f\u3057\u305f\u3088\u3046\u306a\u3082\u306e\u3067\u3001\u5fc5\u8981\u306a\u3082\u306e\u3059\u3079\u3066\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u3001\u79c1\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3088\u308a\u30b9\u30de\u30fc\u30c8\u306a\u4ee3\u66ff\u6848\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 \u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30b2\u30fc\u30e0\u30c1\u30a7\u30f3\u30b8\u30e3\u30fc\u3067\u3042\u308b\u7406\u7531 \u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u3059\u3079\u3066\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u7121\u5dee\u5225\u306b\u975e\u8868\u793a\u306b\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30d5\u30a1\u30a4\u30eb\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u3066\u91cd\u8981\u3067\u306a\u3044\u9805\u76ee\u3092\u6226\u7565\u7684\u306b\u975e\u8868\u793a\u306b\u3057\u3001\u30af\u30ea\u30fc\u30f3\u3055\u3001\u5b89\u5168\u6027\u3001\u67d4\u8edf\u6027\u3092\u512a\u5148\u3057\u307e\u3059\u3002 \u4e3b\u306a\u5229\u70b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059: \u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u305b\u305a (\u30c9\u30c3\u30c8 (.) \u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3092\u8ffd\u52a0)\u3001\u81ea\u52d5\u5316\u307e\u305f\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u5185\u306e\u53c2\u7167\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002 \u63a5\u7d9a\u3055\u308c\u305f\u30c9\u30e9\u30a4\u30d6\u3068\u30de\u30a6\u30f3\u30c8\u3055\u308c\u305f\u30dc\u30ea\u30e5\u30fc\u30e0\u306f\u8868\u793a\u3055\u308c\u305f\u307e\u307e\u306a\u306e\u3067\u3001\u7f8e\u89b3\u3068\u6a5f\u80fd\u7684\u306a\u5229\u4fbf\u6027\u304c\u78ba\u4fdd\u3055\u308c\u3001\u5916\u4ed8\u3051\u30c9\u30e9\u30a4\u30d6\u304c\u8aa4\u3063\u3066\u53d6\u308a\u5916\u3055\u308c\u308b\u3053\u3068\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002 \u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u8868\u793a\u307e\u305f\u306f\u975e\u8868\u793a\u306b\u5b9a\u7fa9\u3057\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u500b\u4eba\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u30cb\u30fc\u30ba\u306b\u9069\u5fdc\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u4ee5\u524d\u306e\u65b9\u6cd5\u3068\u306f\u7570\u306a\u308a\u3001Finder \u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u305f\u3081\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u304c\u4e2d\u65ad\u3055\u308c\u308b\u3053\u3068\u306a\u304f\u7dad\u6301\u3055\u308c\u307e\u3059\u3002 \u30b9\u30af\u30ea\u30d7\u30c8\u3092Apple\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3068\u7d71\u5408\u3059\u308b Apple \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8 \u30a2\u30d7\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u65e5\u5e38\u696d\u52d9\u306b\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d71\u5408\u3067\u304d\u308b\u305f\u3081\u3001\u79fb\u690d\u6027\u3068\u52b9\u7387\u6027\u304c\u9ad8\u307e\u308a\u307e\u3059\u3002 \u307e\u305a\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8 \u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u3001\u65b0\u3057\u3044\u7a7a\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 \u300c\u30b7\u30a7\u30eb \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u300d\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u300cHello World\u300d\u30c6\u30ad\u30b9\u30c8\u3092\u4ee5\u4e0b\u306b\u793a\u3059\u5b8c\u5168\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002 #!\/bin\/bash # Path to the Desktop directory DESKTOP_PATH=&#8221;$HOME\/Desktop&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[64,80,23,19],"class_list":["post-6786","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-customization","tag-mac","tag-macos","tag-windows"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/posts\/6786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/comments?post=6786"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/posts\/6786\/revisions"}],"predecessor-version":[{"id":6787,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/posts\/6786\/revisions\/6787"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/media?parent=6786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/categories?post=6786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/tags?post=6786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}