Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I don't want to be offensive but I doubt that you have 10.9.1 installed. Have you ever tested your Installer or the 2D Dock script in Mavericks??

I've been using the plug-in and script (which I made into an app) on three Macs running 10.9.1 and it works fine on all three...

I did make some modifications to the plug-in however:
TigerDockMavericks.png
 
Last edited:
I don't want to be offensive but I doubt that you have 10.9.1 installed. Have you ever tested your Installer or the 2D Dock script in Mavericks??

Okay...

If you haven't lost complete faith in my scripting skills already please give this a try.

https://sourceforge.net/projects/cdock/files/latest/download

Updated the stuff in my original post too:

https://forums.macrumors.com/posts/18514056/

I've been using the plug-in and script (which I made into an app) on three Macs running 10.9.1 and it works fine on all three...

I did make some modifications to the plug-in however:
TigerDockMavericks.png

How'd you change the dock app/folder separator? I'd really like to either hide it or make it a line like yours.
 
Last edited:
I've been using the plug-in and script (which I made into an app) on three Macs running 10.9.1 and it works fine on all three...

I did make some modifications to the plug-in however:
TigerDockMavericks.png

I am trying to use the 2D Dock app/script on my MacBook Pro late 2013 running
OS 10.9.1 Mavericks. AppleScript editor tells me that the script is not functional:

#!/bin/bash

for i in {1..10}
do
osascript -e 'tell application "Dock" to inject SIMBL into Snow Leopard'
sleep 6
done


Result when running the script in AppleScript editor:

Syntax Error
Expected end of line, etc. but found parameter name.

I have no idea why AppleScript editor would accept the script on any other machine running 10.9.1!

What happens when you run it in Apple Script editor?
 
Last edited:
I am trying to use the 2D Dock app/script on my MacBook Pro late 2013 running
OS 10.9.1 Mavericks. AppleScript editor tells me that the script is not functional:

#!/bin/bash

for i in {1..10}
do
osascript -e 'tell application "Dock" to inject SIMBL into Snow Leopard'
sleep 6
done


Result when running the script in AppleScript editor:

Syntax Error
Expected end of line, etc. but found parameter name.

I have no idea why AppleScript editor would accept the script on any other machine running 10.9.1!

What happens when you run it in Apple Script editor?

That's a bash script not an AppleScript. Just try using my installer again it should work now.
 
Last edited:
How'd you change the dock app/folder separator? I'd really like to either hide it or make it a line like yours.

Just the "separatorstraight.png" image that's always been used. The plug-in code makes reference to it so I edited one from the side dock in Mavericks (flipped it vertical first) then messed with it until it looked right. It goes into the Dock resources folder. I think I changed the code for how it's drawn too. Mine looks like this:

Code:
CALayer *layer = [super layer];
layer.contents = [NSImage imageNamed:@"separatorstraight"];
layer.contentsGravity = kCAGravityResizeAspectFill;

I also added a drop shadow since the white dock doesn't stand out as much on lighter backgrounds. You can add that with this code:

Code:
 layer.masksToBounds = NO;
 layer.cornerRadius = 0; // if you like rounded corners
 layer.shadowOffset = CGSizeMake(0, 0);
 layer.shadowRadius = 5;
 layer.shadowOpacity = 0.75;

in the (id) layer section - just before "return layer".
 
The spacing on the black dock in this thread is incorrect. Look at this comparison photo to see:
 

Attachments

  • comparison.png
    comparison.png
    269.6 KB · Views: 999
Code:
The spacing on the black dock in this thread is incorrect.

Yes. I noticed that too. I fixed it on my white dock. I guess it's like that because OS X draws the 3D dock in perspective, starting wider and tapering back, so it has to start wide so there's enough "floor" for the icons to be on when it gets to the back.

Anyway, I think this is what I did to fix that:

Code:
- (void)resizeWithOldSuperlayerSize:(CGSize)size
{
	CALayer *layer = self.superlayer;
	if (layer) {
		NSInteger orientation;
		if (object_getInstanceVariable(layer, "_orientation", (void **)&orientation)) {
			// 0:bottom, 1:left, 2:right
			CGRect rect = layer.bounds;
			if (orientation == 0) {
				rect.size.height *= 1.75;
				rect.size.height += self.cornerRadius;
                rect.size.width -= 18.00;
				// rect.size.width += self.cornerRadius;
				rect.origin.y -= self.cornerRadius;
                rect.origin.x += 10;
			} else {
				rect.size.width += self.cornerRadius;
				if (orientation == 1) {
					rect.origin.x -= self.cornerRadius;
				}
			}
			
			self.frame = rect;
			
		}
	}
}

Note the rect.size.width and rect.origin.x lines. I can't remember if they were there or if I added them...

That will mess up the Trash positioning. So, I changed this so the origin was "2":

Code:
- (void)resizeWithOldSuperlayerSize:(CGSize)size
{
	CGRect rect = self.superlayer.frame;
	rect.origin.x = 2;
	rect.origin.y *= -1;
	CALayer *floorLayer = [[BlackDock sharedInstance] floorLayer];
	rect.size.height = [floorLayer frame].size.height - floorLayer.cornerRadius;
	
	self.frame = rect;
}

(Apologies for posting this code if I'm not supposed to. I'll pull it if anyone objects.)
 
Last edited:
I'm actually not entirely sure what d00rknocker has done but here's a thread with some good info for setting up a black dock on mavericks: https://forums.macrumors.com/threads/1665442/

Read down to some of the comments between gamegurunaga and I. Possibly gamegurunaga could help you if he's still using these forums because he was able to get a pretty sexy looking all black theme going.

Image

Love that wallpaper, can you please provide a link or a picture of it?

TYVM
 
First: I'm so damn sorry if I've misread anything and am about to ask a stupid question

Second: w0lf my god i LOVE YOU for letting me have a 2D dock again. But is there any way that i can make the dock fully transparent (as in instead of the gray box)?
 
First: I'm so damn sorry if I've misread anything and am about to ask a stupid question

Second: w0lf my god i LOVE YOU for letting me have a 2D dock again. But is there any way that i can make the dock fully transparent (as in instead of the gray box)?

Yes but you'd have to install Xcode, get the BlackDock source, change like 2 numbers and build it. Since I don't think most people would be able to do that I've added 4 different dock versions that you can select with the installer as well as included the spacing fixes posted by Nero Wolfe. However if you do go the Xcode route you can customize it however much you want, making it any color, using custom separators, adding shadows, adjusting size, etc...

Here is the new installer which is now called cDock. I updated the readme and added screenshots of all 4 versions of the dock.

Download

It also doesn't require you to enter your password if you already have simbl installed now.
 

Attachments

  • ss.png
    ss.png
    185.7 KB · Views: 18,576
Last edited:
Great job, I like it, but is it possible to add to the installer a dock that is much less transparent, and more opaque with a white-blue tint, that looks exactly like the one in OS X Tiger ? Would be much appreciated. Thanks.
 
Thank you very much for packaging that!

Is there any chance someone could make the conventional 2D dock a lighter grey? It's quite dark right now. It'd also help dim the indicator lights.
 
Last edited:
Great job, I like it, but is it possible to add to the installer a dock that is much less transparent, and more opaque with a white-blue tint, that looks exactly like the one in OS X Tiger ? Would be much appreciated. Thanks.

Thank you very much for packaging that!

Is there any chance someone could make the conventional 2D dock a lighter grey? It's quite dark right now. It'd also help dim the indicator lights.

I won't likely create any more dock styles than what exists now. However if anyone wants to make an alteration or new style I can include that if they upload the source used to build their version of the BlackDock bundle.

I do plan to post at least one further version of the installer that has a rainbow dock option (random color each boot) a fix for the uninstaller that closes the simbl uninstaller properly and updated credits to include cocoaDialog.

cDock isn't meant to be a catch all dock customizer. Plus I have no real cocoa experience and this app only exists because of the convenience of Platypus and cocoaDialog which let me create a few basic cocoa elements.

If you want to edit the indicator lights or other parts of the dock you can still do so manually. The indicator lights are located here:

/System/Library/CoreServices/Dock.app/Contents/Resources/indicator_medium.png
/System/Library/CoreServices/Dock.app/Contents/Resources/indicator_medium@2x.png
/System/Library/CoreServices/Dock.app/Contents/Resources/indicator_side_medium.png
/System/Library/CoreServices/Dock.app/Contents/Resources/indicator_side_medium@2x.png
/System/Library/CoreServices/Dock.app/Contents/Resources/indicator_side_small.png
/System/Library/CoreServices/Dock.app/Contents/Resources/indicator_side_small@2x.png
/System/Library/CoreServices/Dock.app/Contents/Resources/indicator_small.png
/System/Library/CoreServices/Dock.app/Contents/Resources/indicator_small@2x.png


**
If you want to experiment with perfecting the look of the 2D dock install Xcode and check out this BlackDock source (with added comments and the positioning fix).

Once you have Xcode installed just double click the BlackDock.xcodeproj and it will open the project

Next select BlackDock.m which is the file that you need to make alterations to. The comments I've made describe how to make some basic alterations.

Once you've made changes build the BlackDock.bundle by clicking the play symbol and copy paste the build to ~/Library/Application Support/SIMBL/Plugins . Finally open terminal.app and run these two commands:

osascript -e 'tell application "Dock" to quit'
osascript -e 'tell application "Dock" to inject SIMBL into Snow Leopard'
 
Last edited:
cDock - Download latest version

Changelog
Code:
v1.2 

installer - 

Added: Rainbow dock (changes color each boot or dock restart)

uninstaller -

Fixed: SIMBL uninstaller not closing itself
Fixed: Loop not ending properly
Added: Check for SIMBL
Added: Option to only uninstall cDock/Blackdock
Added: log file

readme -

Updated: cocoaDialog credits
Updated: changes to uninstall process
 
Last edited:
Thank you very much for this, unfortunately in my case it is not working. The log says:

Code:
Installing Square dock
rm: /Library/Application Support/SIMBL/Plugins/BlackDock.bundle: No such file or directory
Closing in 3 seconds...

It installs SIMB successfully and restarts the dock but is the same 3D Dock.
 
Thank you very much for this, unfortunately in my case it is not working. The log says:

Code:
Installing Square dock
rm: /Library/Application Support/SIMBL/Plugins/BlackDock.bundle: No such file or directory
Closing in 3 seconds...

It installs SIMB successfully and restarts the dock but is the same 3D Dock.

Interesting that really doesn't look like anything went wrong although I feel like there should also be a line about launchctl failing to unload something.

Can you check that all these files are in place after running the installer:

In Finder in the "Go" menu select "Go to Folder..." and copy paste in the line.

/Library/Application Support/SIMBL/Plugins/BlackDock.bundle
~/Library/LaunchAgents/com.w0lf.BlackDock.plist
~/Library/Application Scripts/BlackDock/2d.sh

If all of those are there, my guess is it has to do with the launch agent not working for some reason.
 
cDock - Download latest version

Changelog
Code:
v2.0

New: Merged installer and uninstaller into one app cDock

Fixed: Failing to launch if the path it was located in contained spaces
Fixed: Failing to install if account didn’t have a LaunchAgents folder
Fixed: Custom docks are now per-user so different user accounts on the same machine can have different docks
Fixed: Not installing properly on non-admin accounts

Updated readme
Added update notes
 
Last edited:
cDock 2.0 - Download

Code:
v2.0

New: Merged installer and uninstaller into one app cDock

Fixed: Failing to launch if the path it was located in contained spaces
Fixed: Failing to install if account didn’t have a LaunchAgents folder
Fixed: Custom docks are now per-user so different user accounts on the same machine can have different docks
Fixed: Not installing properly on non-admin accounts

Updated readme
Added update notes
Thanks! :cool:
I like Mavericks in general, but the light color of the 2D dock, which I keep on the left side of the screen, drives me crazy. Now with ver. 2 of your app I am very pleased to find the darkML-like dock!
Much appreciated! :cool::D:cool:
 
Interesting that really doesn't look like anything went wrong although I feel like there should also be a line about launchctl failing to unload something.

Can you check that all these files are in place after running the installer:

In Finder in the "Go" menu select "Go to Folder..." and copy paste in the line.

/Library/Application Support/SIMBL/Plugins/BlackDock.bundle
~/Library/LaunchAgents/com.w0lf.BlackDock.plist
~/Library/Application Scripts/BlackDock/2d.sh

If all of those are there, my guess is it has to do with the launch agent not working for some reason.

BlackDock.bundle is missing and the log says, "launchctl remove error: No such process"
 
BlackDock.bundle is missing and the log says, "launchctl remove error: No such process"

Okay. Yeah might be that your account can't write to /Library/.../ for some reason.

Try out v2.0 that I posted above. I think it should probably fix the issue for you as that was one of the issues I could replicate and specifically tested and fixed on a standard account.

cDock - Download

Let me know if it's still not working.
 
Last edited:
Okay. Yeah might be that your account can't write to /Library/.../ for some reason.

Try out v2.0 that I posted above. I think it should probably fix the issue for you as that was one of the issues I could replicate and specifically tested and fixed on a standard account.

cDock 2.0 - Download

Let me know if it's still not working.

I Thank you I used some app called Deeper from the Onyx developer to restore the Dock and then re-open cDock at first it relaunched the same 3D dock but after 3 seconds the 2D dock just popped up.

/Library/Application Support/SIMBL/Plugins/ is always empty, I found BlackDock.bundle in ~/Library

Thank you again, any way to donate?
 
Last edited:
Thanks for making this!

However, I don't get a separator with the square dock :confused: It shows with the rest.

Any ideas?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.