Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Restoring application icons to OS X Dock

Thread Tools
 
Search this Thread
 
Old 03 November 2007, 10:55 AM
  #1  
mgcvk
Scooby Regular
Thread Starter
 
mgcvk's Avatar
 
Join Date: Nov 2004
Posts: 2,884
Received 9 Likes on 6 Posts
Default Restoring application icons to OS X Dock

My five year old has been messing about on my Mac. Icons for Mail and some others are no longer there. Anyone know how I put these icons back in the Dock so they stay there?
Old 03 November 2007, 11:12 AM
  #2  
mgcvk
Scooby Regular
Thread Starter
 
mgcvk's Avatar
 
Join Date: Nov 2004
Posts: 2,884
Received 9 Likes on 6 Posts
Default

No problems have worked it out.....just thought there would be something in Dock preferences!
Old 03 November 2007, 06:59 PM
  #3  
SteveShort
Scooby Regular
 
SteveShort's Avatar
 
Join Date: Aug 2006
Posts: 191
Likes: 0
Received 0 Likes on 0 Posts
Default

no there isnt but the help section is very good

bet your little monster loved watching all the icons disappear in a puff of smoke
Old 03 November 2007, 07:49 PM
  #4  
Markus2
Scooby Newbie
 
Markus2's Avatar
 
Join Date: Aug 2007
Location: Also known as Markus
Posts: 12
Likes: 0
Received 0 Likes on 0 Posts
Default

I know you have sorted it, but I'm bored so I'll waffle on about the Dock for ab bit

To add an icon to the Dock you can either launch the corresponding application then click and hold on it's icon in the Dock and you'll get a popup menu where you can select "Keep in Dock". This will add the entry to the com.apple.dock.plist file (found in the /Users/YourUserName/Library/Preferences folder on your hard drive) which is the pref file for all of the Dock settings.

In a normal setup you can happily add/remove items to/from the dock without any prevention at all, and there is no option within the Dock prefs to limit this behavior.

Typically if you want this level of control you need to start messing around with MCX settings, which is how the Server/Client control stuff works in OS X. If you know where to look and how the system works, then it's easy enough to setup and modify, but it's not dynamic, meaning you'd need to login and logout to change the "locked" state of the Dock.

I've had a little play around and even making the com.apple.dock.plist file read-only doesn't help, as when you relaunch the dock, eg; after a reboot, it's made read/write, so the damage can be done again.

A script could be very easily written to backup the dock settings and allow you to restore them if the dock got screwed up. I'm not overly busy so I'm in the middle of writing one, will probably be done in the next hour or so, will post up when I've finished it.
Old 03 November 2007, 08:54 PM
  #5  
Markus2
Scooby Newbie
 
Markus2's Avatar
 
Join Date: Aug 2007
Location: Also known as Markus
Posts: 12
Likes: 0
Received 0 Likes on 0 Posts
Default

Script is finished. It's pretty basic. It will backup the current file (name includes date, so you can have a per day backup, which is all you should need really) and allow you to restore the backup file. If you make more than one backup (eg; one per day) then you can select which one to backup.

If anyone wants a copy then email me: markuswarren@gmail.com

Seems to work happily on 10.4.10 and 10.5.0
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
Wingnuttzz
Member's Gallery
30
26 April 2022 11:15 PM
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM
WRXrowdy
Computer & Technology Related
6
15 September 2015 08:56 PM



Quick Reply: Restoring application icons to OS X Dock



All times are GMT +1. The time now is 06:35 PM.