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: Waterloo, ON
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 online now   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

Similar Threads
thread Thread Starter Forum Replies Last Post
Mid 2011 MacBook Air EFI Lock and iCloud lock ahwhite83 MacBook Air 3 Nov 2, 2013 07:35 PM
iPhone: Lock notifications on lock screen Pagemakers Jailbreaks and iOS Hacks 10 Mar 3, 2013 04:19 AM
Lock For iMac - Kensington vs Bike Lock BunnyBusiness iMac 0 Dec 6, 2012 07:11 PM
Looking for Assistive Tech to announce pressing Caps Lock, Scroll Lock, Num Lock macropanther Mac Applications and Mac App Store 1 Jun 18, 2012 11:56 AM

Forum Jump

All times are GMT -5. The time now is 06:53 PM.

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

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