|
|
#1 |
|
Prospect
Join Date: Sep 2006
Posts: 27
|
Dock Lock
Heya, i'm looking for an app that will lock the status of the dock from drag and drop. I find that on my laptop i'm always accidentally dragging an app out of the dock and dropping it somewhere on the screen making it poof.
If anyone can point me in the right direction, that would be awesome. Thanks! |
|
|
|
|
|
#2 |
|
All Star
Join Date: Mar 2005
Posts: 551
|
TransparentDock can do it (amongst other options), however the program isn't free.
|
|
|
|
|
|
#3 |
|
League Commissioner
Join Date: Sep 2003
Location: Tokyo
Posts: 6,045
|
Tried the low-tech solution of just locking the com.apple.dock.plist file?
|
|
|
|
|
|
#4 |
|
Prospect
Join Date: Sep 2006
Posts: 27
|
hmm, never thought of that.
So, doing it that way i'm still able to edit it, but if i kill / relaunch it, it returns to what it was. Cool! thanks! |
|
|
|
|
|
#5 | ||||||||||||||||||||||||||||||||||||||||||
|
All Star
Join Date: Mar 2005
Posts: 551
|
I've not personally tried, but it seems that won't work according to this post: http://forums.macosxhints.com/showthread.php?t=5474 In a non-admin account you can lock the Dock in System Preferences > Accounts > Parental controls, though this may be quite bothersome. OS X Server can do this for all accounts apparently but then you need to own it. Edit:- This may work:
You could probably create an AppleScript/Automator Action to toggle the option on/off (something similar to this), but I don't know how. Last edited by melon; 01-31-2007 at 11:25 AM. |
||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
#6 |
|
All Star
Join Date: Mar 2005
Posts: 551
|
I've had a quick go at AppleScripting, this seems to work:
Code:
display dialog "Lock the Dock..." buttons {"Lock", "Unlock", "Cancel"} default button 3
copy the result as list to {buttonpressed}
if the buttonpressed is "Lock" then
try
tell application "Dock" to quit
do shell script "defaults write com.apple.dock contents-immutable -bool true"
delay 1
tell application "Dock" to activate
end try
else if the buttonpressed is "Unlock" then
try
tell application "Dock" to quit
do shell script "defaults write com.apple.dock contents-immutable -bool false"
delay 1
tell application "Dock" to activate
end try
end if
The code was based on this hint and there are loads of variations. It can probably be made better considering I know very little AppleScript
Last edited by melon; 01-31-2007 at 12:00 PM. |
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
Locking the Dock
I have found an easy program that will lock the dock for you. It is called Deeper and if you go into the "Dock" tab you can check "Lock the icons".
In order to get Deeper you can visit: |
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|