Macguru

More software!

Archive for February, 2008

Removing items from OS X dock — on a mass scale

without comments

So, I was looking around the internet today and was trying to figure out how to automate removing applications from the User’s dock. After about an hour of searching, I came to the realization that there really is no good solution, especially one from the command line.

Well, come to find out, Apple actually ships a handy little script called PlistBuddy that allows you to modify plists rather easily. Certainly better than using the defaults command.

To locate the PlistBuddy, run the following command.

/usr/bin/locate PlistBuddy | sed 2,10000d

The result will show you the path to the first hit for PlistBuddy. If you want to see all of them just run the first part of that command.

/usr/bin/locate PlistBuddy

So, I have created a script using PlistBuddy that will remove any occurrences of the keyword you supply. Basically, just save the following script into a file called removeApps.sh (or whatever you want to call it), move the PlistBuddy script to a good place for scripts, like /usr/bin/ and then run my script. Example to remove all Microsoft apps,

removeApps.sh Microsoft

Hopefully this will help a lot of Mac administrators out there that are looking for quick ways to remove Dock items.

Here is the script, enjoy.
Remove App

Written by rrhpph

February 29th, 2008 at 1:47 pm

Posted in Software

Decided to join

without comments

Well, since everyone is going crazy about blogs and wordpress, I decided to see what all the commotion is about. I guess it is a good way to stay in touch and share your thoughts. Makes everything searchable by google and collaboration is at it’s highest point once it is on the web. Share your thoughts, give me your mind….

So, here is the start to my blogging future. Good or bad, time will tell.

Written by rrhpph

February 20th, 2008 at 9:06 am

Posted in General