HELP!!!!! I Lost my dock after typing command into terminal

Joined
Mar 9, 2011
Messages
7
Reaction score
1
Points
3
I typed
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
Into terminal and now my dock is gone. When I looked in activity monitor i saw that dock keeps opening and closing. I tried re-installing mac os x but i didn't fix the problem :( I think that what I put into terminal was a 10.5 script :( however when i go on another account the dock is working.

Please any help would be really appreciated
 
Joined
May 14, 2009
Messages
2,052
Reaction score
136
Points
63
Location
Near Whitehorse, Yukon
Your Mac's Specs
2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
I have no idea what that command really does, although it looks familiar.
Open the Terminal and copy/paste this.
Code:
defaults delete com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'

Restart the Dock, by typing killall Dock in the Terminal. It should be back to normal now.
 
OP
R
Joined
Mar 9, 2011
Messages
7
Reaction score
1
Points
3
I then get this in terminal

look at the attached image to see what then came up in terminal. I'm not sure if that is meant to come up? but even after i typed Killall dock nothing happened

2011-03-10_1420.png
 

BrianLachoreVPI


Retired Staff
Joined
Feb 24, 2011
Messages
3,733
Reaction score
124
Points
63
Location
Maryland
Your Mac's Specs
March 2011 15" MBP 2.3GHz i7 Quad Core 8GB Ram | Mid 2011 27" iMac 3.4 GHz i7 16 GB RAM 2 TB HDD
It's telling you it didn't like the syntax you used for defaults - that's all I can offer here. Did you copy the entirety of McYukon's post?

I'm just fascinated by the embedded scrollable window in the post.
 
Joined
May 14, 2009
Messages
2,052
Reaction score
136
Points
63
Location
Near Whitehorse, Yukon
Your Mac's Specs
2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
Ok, I just assumed that since you can change the write to delete normally that it would work. Seems that this long string with all its "{ .etc are making it choke.

Only thing now is to delete the dock plist, which will mean that you will lose your dock configuration and need to redo them.
Goto /Users/####/Library/Preferences/ and move com.apple.dock.plist to the Trash.
Restart the dock again with "killall Dock"

@BrianLachoreVPI Thats the
Code:
[&CODE][&/CODE]
tag minus the &s in there.
 

BrianLachoreVPI


Retired Staff
Joined
Feb 24, 2011
Messages
3,733
Reaction score
124
Points
63
Location
Maryland
Your Mac's Specs
March 2011 15" MBP 2.3GHz i7 Quad Core 8GB Ram | Mid 2011 27" iMac 3.4 GHz i7 16 GB RAM 2 TB HDD
Excellent. Learn something new every time I come in here - :) Thanks!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top