Skip navigation

remove Finder icon from Dock

10972 Views 23 Replies Latest reply: Mar 26, 2014 11:36 AM by mamiu RSS
1 2 Previous Next
Captain Apollo Level 1 Level 1 (25 points)
Currently Being Moderated
Apr 14, 2012 8:16 AM

Does anyone know a way to permanently remove the Finder icon from the Dock? Either by a Terminal command or a 3rd party software package?

MacBook Air, Mac OS X (10.7.2)
  • Lanny Level 5 Level 5 (4,165 points)
    Currently Being Moderated
    Apr 14, 2012 9:03 AM (in response to Captain Apollo)

    Why would you want to?

  • Lanny Level 5 Level 5 (4,165 points)
    Currently Being Moderated
    Apr 14, 2012 9:20 AM (in response to Captain Apollo)

    Remember, that any running program is always shown in the Dock, if the Finder wasn't running, you wouldn't have a Desktop.

     

    So, if you quit the Finder, you would theoretically be able to remove it from the Dock, but then you wouldn't have a Dock, duhh.

  • nerowolfe Level 6 Level 6 (13,070 points)
    Currently Being Moderated
    Apr 14, 2012 9:21 AM (in response to Lanny)

    To add to your excellent reply, the Desktop IS a Finder window. One and the same.

  • Monostratos Calculating status...
    Currently Being Moderated
    May 31, 2012 3:58 PM (in response to Captain Apollo)

    Lanny is wrong. A running app doesn't need to show up in the dock. Some are displayed in the menu bar, some aren't visible anywhere. I found a solution to your question at http://apple.stackexchange.com/questions/30415/how-can-i-remove-the-finder-icon- from-my-dock which adds REMOVE_FROM_DOCK to your dock icon's context menu. It doesn't quit Finder, it just adds the option to, well, remove it from the dock.

     

    Here's the quick way: Run this one-liner in Terminal and that's it.

    f=/System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus; sudo cp $f.plist $f-old.plist; sudo defaults write $f finder-running -array-add '<dict><key>command</key><integer>1004</integer><key>name</key><string>REMOVE_FR‌OM_DOCK</string></dict>'; sudo chmod 644 $f.plist; osascript -e 'quit app "Dock"'

  • Monostratos Level 1 Level 1 (10 points)
    Currently Being Moderated
    May 31, 2012 4:20 PM (in response to Monostratos)

    If you want to remove the dock icon automatically at login, just save this little AppleScript as an application and add it to your login item in your System Preferences. It will only work if you've already run the previous line of code in Terminal.

     

    tell application "System Events" to tell UI element "Finder" of list 1 of process "Dock"
    perform action "AXShowMenu"
    click menu item "REMOVE_FR​OM_DOCK" of menu 1
    end tell

    If the script doesn't work, you've probably not enabled GUI scripting. Go to System Preferences / Universal Access, and check the box that says Enable support for assistive devices.

  • Bodhisattvah Calculating status...
    Currently Being Moderated
    Dec 21, 2012 7:27 AM (in response to Monostratos)

    Hey Monostratos, i am seeing this error message when running your apple script

     

    error "System Events got an error: Can’t get menu item \"REMOVE_FR​OM_DOCK\" of menu 1 of UI element \"Finder\" of list 1 of process \"Dock\"." number -1728 from menu item "REMOVE_FR​OM_DOCK" of menu 1 of UI element "Finder" of list 1 of process "Dock"

     

     

    I ran the terminal command, so I can right click manually and remove it from the dock, and I have enabled support for assistive devices.

     

    Any thoughts?

     

    Thanks for your time

  • hpahaut Calculating status...
    Currently Being Moderated
    Jan 28, 2013 10:38 PM (in response to Monostratos)

    Hey Monostratos (:

     

    Script worked perfeclty (: Finally no Dock...

     

    It did also removed it from the CMD + Tab menu. I don't need it there but I did like it. Any way to get that back?

     

    Also, would your solution also work for other apps? The specific one I'm thinking of is BOINC, which I always have running. But it also appears on the mac menu bar. For now it's also constantly on the dock and in the CMD + Tab menu...

    Any way to remove it from those two places while still having it run and stay in the top menu bar?

     

     

    Cheers (:

  • rojvol Calculating status...
    Currently Being Moderated
    Feb 15, 2013 9:32 AM (in response to Monostratos)

    I am keep getting the exact same problem as Bodhisattvah... Any ideas?

    + I want to ask - is it problem if i forget to backup original dock file? I cant see why is it wrong.

     

    Thanks alot.

  • softwater Level 5 Level 5 (5,370 points)
    Currently Being Moderated
    Feb 15, 2013 9:48 AM (in response to Monostratos)

    I don't think that works in Mountain Lion. For one thing, there is no 'remove from Dock' option in the Dock icon menu.

     

    Screen Shot 2013-02-16 at 00.47.44.png

  • rojvol Level 1 Level 1 (0 points)
    Currently Being Moderated
    Feb 15, 2013 10:34 AM (in response to softwater)

    That is incorrect - Monostratos came with a pretty good solution that actually adds the "remove" button. However the problem is with making it happen by itself whenever you turn on your mac.

     

    tell application "System Events" to tell UI element "Finder" of list 1 of process "Dock"

    perform action "AXShowMenu"

    click menu item "REMOVE_FR​OM_DOCK" of menu 1

    end tell

     

    Seems not to work.

  • softwater Level 5 Level 5 (5,370 points)
    Currently Being Moderated
    Feb 15, 2013 7:42 PM (in response to rojvol)

    Yes, sorry I missed the first half of the solution (editing the plist). To make the Applescript work, change it to this:

     

    tell application "System Events"

              tell UI element "Finder" of list 1 of process "Dock"

                        perform action "AXShowMenu"

                        click the last menu item of menu 1

              end tell

    end tell

1 2 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.