Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 16, 2009, 09:38 AM   #1
PartisanEntity
macrumors member
 
Join Date: Apr 2008
Location: Vienna, Austria
Lock the dock?

Hi all,

I have two questions concerning the dock.

a) I accidentally removed an application from the dock the other day and am not sure which, any way I can see log files of the dock to see which apps were on it?

b) Can I lock the dock to prevent accidental app removal?

Thank you!
PartisanEntity is offline   0 Reply With Quote
Old Aug 16, 2009, 09:39 AM   #2
r.j.s
Moderator emeritus
 
r.j.s's Avatar
 
Join Date: Mar 2007
Location: Fort Knox
No to both.

The dock is all just shortcuts, you can add and remove as you please. If you don't know which app is missing, it wasn't that important to you.
r.j.s is offline   0 Reply With Quote
Old Aug 16, 2009, 10:40 AM   #3
Nero Wolfe
macrumors regular
 
Join Date: Oct 2007
Location: Atlanta, GA
Send a message via AIM to Nero Wolfe
To your first question, I don't know. If you have Time Machine running, and it's backing up your library you could grab the com.apple.dock.plist file and replace the one in your current library.

As for locking the contents, yes you can. Either via a terminal command (which I don't know) or by using an app such as Docker, which is free. (Sorry I don't know the website off hand.)

Hope this helps!
__________________
21.5" iMac, 2.5GHz i5 ; 17" MacBook Pro, 2.2GHz i7 ; 32GB iPad mini ; 32GB iPhone 5S
Nero Wolfe is offline   0 Reply With Quote
Old Aug 16, 2009, 10:50 AM   #4
Simplicated
macrumors 65816
 
Simplicated's Avatar
 
Join Date: Sep 2008
Location: Ingsoc
To lock objects inside the dock, simply type this into Terminal:

Code:
defaults write com.apple.dock contents-immutable -bool YES; killall Dock
Now you can't add things to the dock, neither remove them.

To revert just replace the YES with NO.

There's more you can play with, by replacing contents-immutable with:
position-immutable - Locks the ability to change the Dock position
size-immutable - Locks the ability to change the size of the Dock

Last edited by Simplicated; Aug 16, 2009 at 11:14 AM.
Simplicated is offline   0 Reply With Quote
Old Aug 16, 2009, 11:10 AM   #5
r.j.s
Moderator emeritus
 
r.j.s's Avatar
 
Join Date: Mar 2007
Location: Fort Knox
Quote:
Originally Posted by Simplicated View Post
To lock objects inside the dock, simply type this into Terminal:

Code:
defaults write com.apple.dock contents-immutable -bool YES; killall Dock
Now you can't add things to the dock, neither remove them.

To revert just replace the YES to NO.

There's more you can play with, by replacing contents-immutable with:
position-immutable - Locks the ability to change the Dock position
size-immutable - Locks the ability to change the size of the Dock
Apparently, I was wrong.

You learn something new everyday.
r.j.s is offline   0 Reply With Quote
Old Feb 4, 2013, 09:45 AM   #6
mamaz13
macrumors newbie
 
Join Date: Feb 2013
A Simpler Solution to unlocking the dock

On an Older (non-2012 Mac Air) under MacHD/Library/Scripts/Dock - you will see 2 links, a lock and unlock. For our school system, (not sure about non corporate computers) we have to click twice to activate either command.

Louise Zwileneff
Computer Technician Trainer/ Novell Network Administrator
Stafford County Public Schools
mamaz13 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Lion and Locking the Dock basher Mac OS X 10.7 Lion 2 Jul 8, 2011 09:29 AM
Is there any way to Lock the Dock? NSK123 OS X 2 Jun 17, 2009 11:27 PM
lock the dock? kakapo OS X 6 Dec 26, 2008 10:52 PM
Locking the dock zen OS X 7 May 12, 2008 05:20 AM
Is there anyway to lock icons in the dock (aka they cant be dragged off without pw) VoodooDaddy Mac Basics and Help 2 Sep 24, 2006 08:53 PM


All times are GMT -5. The time now is 01:57 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC