Currently Being ModeratedApr 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.
Currently Being ModeratedMay 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_FROM_DOCK</string></dict>'; sudo chmod 644 $f.plist; osascript -e 'quit app "Dock"'
Currently Being ModeratedMay 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_FROM_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.
Currently Being ModeratedDec 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_FROM_DOCK\" of menu 1 of UI element \"Finder\" of list 1 of process \"Dock\"." number -1728 from menu item "REMOVE_FROM_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.
Thanks for your time
Currently Being ModeratedJan 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?
Currently Being ModeratedFeb 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.
Currently Being ModeratedFeb 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_FROM_DOCK" of menu 1
Seems not to work.
Currently Being ModeratedFeb 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