1

Like on the right side of the following image:

grg
  • 201,078
kirion
  • 11

1 Answers1

1

I don't use El Capitan, but it should be the same as in previous versions.

  1. In Finder menu bar: Go → Go to folder…
    • Insert this path: /System/Library/CoreServices/Dock.app/Contents/Resources/
  2. Search for: "dockbackground"

  3. Now, what file it is that you need to modify depends on a few things:

    • If you have Retina Mac, it's one of the @2x.png files
    • If you have System Preferences → General → ☑︎ Use dark menu bar and Dock checked, it's going to be one of the files with "dark" in the name.
  4. In this case, since you want to remove the border, you can just move all these files to another location.

    • Admin password required.
  5. The changes take effect next time the dock loads. You can force it to reload a few ways:
    • If using Terminal is not for you, you can just log out and log back in.
    • OR if you don't mind using Terminal, the quickest way is to open Terminal.app and run: killall -kill Dock (The dock will go into hiding and come back almost immediately with the changes)

If you want the old borders back, you can just move the files back to the folder.

grg
  • 201,078
Joonas
  • 2,678
  • Make sure you mention that you have to turn off SIP for this to work. – Arc676 Dec 08 '15 at 13:57
  • @Arc676 Forgot about that. I guess I would rather advice to downgrade to Yosemite :) – Joonas Dec 08 '15 at 13:57
  • @Joonas thanks for help, but every time I try to move [email protected] to another folder, I get a message saying: ""[email protected]" can’t be modified or deleted because it’s required by Mac OS X." – kirion Dec 09 '15 at 14:32
  • That would be the SIP talking, @kirion. Many people are choosing not to update for now, due to the crippling effect that it can have. I personally have so many 3rd party apps that would require me to disable SIP, that I haven't even put any thought into it yet. All the devs of affected applications have written about disabling it and why it's required. Here's the SIP article about TotalFinder as an example. – Joonas Dec 09 '15 at 20:33
  • Some devs are coming out with new versions, that work within the restrictions of SIP: Bartender, Default folder x. If I were in your shoes, and this is the only modification you want. I would just leave the dock border as it is. That said, I'm pretty sure you could disable SIP, make this modification and then turn it back on. – Joonas Dec 09 '15 at 20:34
  • @Joonas strange, but after moving [email protected] to another folder, the borders look like this: http://i.imgur.com/8Vg6t2V.png – kirion Jan 03 '16 at 17:48
  • @kirion Is that not what you wanted? The only difference I can see is that there is no shadow. I knew it wouldn't, but I figured it would be close enough with minimal effort. – Joonas Jan 03 '16 at 18:01
  • @Joonas yes, the background looks like I wanted now, but after removing the borders, this tiny line appeared above the dock: http://i.imgur.com/aQ13f2r.png how can I disable that? – kirion Jan 04 '16 at 10:27
  • @kirion Huh... This does not happen when I do this on Yosemite. The only thing that comes to mind, is to try and replace the image with one that is just a blank png with not background. Not sure if the png size matters, but to be on the safe side, I'd take the original image, make a copy of it and use photoshop to: select all (cmd+a), delete (backspace) and save it. Then move that into the folder. – Joonas Jan 04 '16 at 10:41