Sensible Open Source

Blog Status

  • 4 yrs 48 wks 5 days old
  • Updated: 11 Mar 2010
  • 455 entries
  • 174 comments
Total: 1,213,250
since: 5 Apr 2005

LinkBlogS

Creating Vidcasts

18 June 2007, Monday 7:05 P GMT-06
Tags:      

Man, Can't Microsoft Catch A Break?

16 March 2007, Friday 12:26 P GMT-06

Viacom, Google andYou Tube, Oh My!

16 March 2007, Friday 12:25 P GMT-06

Switch to digital TV to start in October

16 March 2007, Friday 7:46 A GMT-06

Is the Ice Ready? No, Its Still To Hot To Use...

16 March 2007, Friday 7:43 A GMT-06

MIT Entire Curriculum At disposal of e-learners

6 March 2007, Tuesday 11:52 A GMT-06

A cure for e-mail attention disorder?

2 March 2007, Friday 12:51 A GMT-06
Tags:  

Windows-on-Mac software gets virtualization update

1 March 2007, Thursday 5:08 A GMT-06

EnterpriseDB is/n't Open Source

1 March 2007, Thursday 3:37 A GMT-06

BitTorrent download portal debuts

27 February 2007, Tuesday 9:05 A GMT-06

$45b TXU buyout

27 February 2007, Tuesday 9:02 A GMT-06

iPhone Competitors Got The Touch

26 February 2007, Monday 3:43 A GMT-06
Tags:        

HTC - Smart Mobility

25 February 2007, Sunday 4:22 A GMT-06

Hard to find 1-800 numbers

23 February 2007, Friday 8:35 A GMT-06

Cuba Embraces Open-Source Software

21 February 2007, Wednesday 3:10 A GMT-06

Vista at the tipping point, Err Dipping Point?

11 February 2007, Sunday 11:11 A GMT-06
Tags:  

PostgreSQL Open Source And Persistence

3 February 2007, Saturday 10:32 P GMT-06

Blackboard Pledges No Patent Blocks

3 February 2007, Saturday 10:28 P GMT-06

UVU

5 January 2007, Friday 11:58 P GMT-06

Open-source IP PBX software appliance"

4 January 2007, Thursday 3:44 A GMT-06

Asterisk an under-appreciated Open Source Success Story

4 January 2007, Thursday 3:43 A GMT-06

Open Source AJAX Tooling

4 January 2007, Thursday 3:41 A GMT-06

Google MAIL API Secuirty Alert

1 January 2007, Monday 7:37 P GMT-06
Tags:    

United States Patent Application: 0060288329

26 December 2006, Tuesday 4:00 A GMT-06

LinkBlog Popular Tags

                                       







««Mar 2010»»
SMTWTFS
  12
3
456
789
10
111213
14151617181920
21222324252627
28293031

 

August 16, 2012

Time Left

2 years 5 months 4 days

                   

RSS Add-Me








Google Related Links

OS X : Lock your DOCK and Stop Accidental Removal of Your Docked Apps

posted 1 October 2009, Thursday
Ever mishap with your mouse?  Cruising over your desktop click, rub, stumble and chatter across the dock whilst the click persists grabbing the DOCKED app ICON on its fumbling way and BAM!  Off goes your DOCK app in to the voided cloud of a cartoon (see below) leaving you guessing waht freaking app was that!! Its crazy, not too, just crazy enough to frustrate the heck out of ya!
 
Dock App after ICON is dragged from the DOCK and than the mouce let go.. The Cloud bursts and the app icon is removed from the DOCK  
 
If you have not experienced this  or if you have and did not know what the ICON was or how to get the icon back this little script below helps you.  The script simply locks and unlocks the DOCK APP ICONS from the OS X DOCK for addition or Removal.
 
Note when the DOCK is NOT LOCKED you can right mouse button click on ANY running app in the DOCK and add click on "KEEP IN DOCK" to keep it in THE DOCK!
 
Further, if you want to remove an app from a dock simply click it  drag it off of the dock and it will be removed.  And here is the problem.  Sometimes you click on the dock and move the mouse a little to fast and poof the cloud of destruction hits.
 
What makes this more confusing if your APP is actually running the APP stays in the dock until you close the app and the LAUNCHER ICON has been removed from the DOCK and you may not notice this immediately.
 
Hence, LOCK THE DOCK!! 
 
dash.sh 

if [[ "$1" ==  unlock || "$1" == UNLOCK || "$1" == u   ]]; then      

   defaults write com.apple.dock contents-immutable -bool FALSE
   ECHO Dock is now UNLocked
else
   defaults write com.apple.dock contents-immutable -bool TRUE
   ECHO Dock is now Locked 
fi 

killall Dock 

 

 
Quick and warranted explanation of the dash.sh script:
We simply take an argument to UNLOCK the document anything else an argument OR no ARGUMENT will lock the dock.  This is just a design and warrants no further architectural thought.  Its script.
 
The   defaults write com.apple.dock contents-immutable -bool simply sets the dock to be locked or unloked on the boolean variable "contents-immutablebeing set to TRUE/FALSE  
 
Killall DOCK  simply kills and restarts the MAC OS X DOCK.  That's it.... 
 
Here are the aliases in the .bash_profile below:
alias dloc='~/bin/lock.sh LOCK'
alias dunl='~/bin/lock.sh UNLOCK'

Calling the dash.sh script from at startup can lock your DOCK as the default simply execute the following:
 
 ~/bin/lock.sh LOCK
 
If you need to unlock and rearrange drop to the shell and execute the following:
~/bin/lock.sh UNLOCK or your ALIAS dunl
 
I lock my DOCK from the .profile startup file.  I want the DOCK to be default locked as this is something I change rarely.
As a result this is the system startup state that I chose for my work environment!

tags:                

AAPL  

links: digg this    del.icio.us    technorati    reddit




1. software download left...
13 October 2009, Tuesday 9:07 am :: http://www.gtdownload.com

This seems to be very interesting, I'm having this problem for a long time and i'm glad that i red your article! keep up the good work!