Mac OSX Coder Posted November 23, 2006 Share Posted November 23, 2006 Hi does anyone know how to remove an application from the Dock using Terminal? (If I drag say "Dictionary, which isn't in use" off the Dock, it vanishes) How do you go on doing this in terminal? Link to comment Share on other sites More sharing options...
Rammjet Posted November 23, 2006 Share Posted November 23, 2006 You would need to remove the app from the dock.plist (~/Library/Preferences/com.apple.dock.plist) and then restart the Dock (killall Dock). But it won't give you the pretty poof and the Dock disappears for a few seconds while it restarts. Link to comment Share on other sites More sharing options...
Mac OSX Coder Posted November 23, 2006 Author Share Posted November 23, 2006 yes I know that, thank you, but what im talking about is how to remove a SINGLE application from the Dock, by JUST using terminal Link to comment Share on other sites More sharing options...
Rammjet Posted November 23, 2006 Share Posted November 23, 2006 Yes, that was what I was saying. Using the Terminal command "defaults write" (perform a "man defaults" in Terminal) on the plist, you can remove the name of the (single) app from the plist. Then issuing the Terminal command "killall Dock" restarts the Dock to display it with the app removed. All with Terminal. Note: "killall" doesn't remove all apps from Dock. It only kills all running processes spawned by Dock. Doing this causes Dock to be killed. But OSX forces it to immediately restart itself. Perform a "man killall" in Terminal. You should perform a "man" on any command you use in Terminal to find out how to use the command. Where did I mention using any other program? Where did I mention removing more than one app from the Dock? You are the so-called "Mac OSX Coder", it should be easy for you. Link to comment Share on other sites More sharing options...
A Nonny Moose Posted November 23, 2006 Share Posted November 23, 2006 WHY? I mean, it so much easier to remove it by dragging it off of the dock. Link to comment Share on other sites More sharing options...
Mac OSX Coder Posted November 23, 2006 Author Share Posted November 23, 2006 haha i wish i was a coder (just a name) still learning - thats weird, i can't find any apps in the plist Link to comment Share on other sites More sharing options...
Recommended Posts